Hi,
On 2011.03.31 17:06, Patrick Mast, xHarbour. wrote:
> 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_jsonEn
Hello,
JSon returns a string instead of a date in this sample:
FUNCTION Main
LOCAL dDate,JSon
JSon:=hb_jsonencode(Date(), .F.)
? hb_jsondecode(JSon, @dDate) // Returns "20110331" instead of a date var
RETURN NI
2 matches
Mail list logo