Hello,

Was thinking.. If we change hb_jsonencode() to also use Date's, will
the output than be JSon compatible? I mean, I need to be able to read
the JSon string with another language that supports JSon strings.

Any thoughts? ;-)

Thanks!

Patrick

On Fri, Apr 1, 2011 at 1:49 PM, Andi Jahja <[email protected]> wrote:
>
> On Fri, 1 Apr 2011 09:03:52 +0200
> "Patrick Mast, xHarbour." <[email protected]> wrote:
>
>> Hello Mindaugas,
>>
>> >> JSon:=hb_jsonencode(Date(), .F.)
>> >> ? hb_jsondecode(JSon, @dDate) // Returns "20110331" instead of a date var
>> >
>> > JSON encoding does not have date type, so, I've implemented date to
>> > character string mapping in hb_jsonEncode() in Harbour. If xHarbour's
>> > JSON implementation is copied from Harbour, you should expect the same
>> > behaviour.
>>
>> Great. Thanks!
>>
>> Andi, can you please sync with harbour? Thanks!
>
> ???
>
> Andi
>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> xHarbour-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xharbour-developers
>

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
xHarbour-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to