Hi,

The encoding does accept DATE and TIMEFLAG. Or am I missing something?

Andi

On Fri, 1 Apr 2011 13:56:38 +0200
"Patrick Mast, xHarbour." <patrick.m...@xharbour.com> wrote:

> 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 <andi.ja...@yahoo.co.id> wrote:
> >
> > On Fri, 1 Apr 2011 09:03:52 +0200
> > "Patrick Mast, xHarbour." <patrick.m...@xharbour.com> 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!
> >
> > ???


------------------------------------------------------------------------------
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
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to