[pm-h] JSON Dates and DateTime

Michael R. Davis mrdvt92 at yahoo.com
Thu Feb 13 14:58:33 PST 2014


Mark et al,
 
>> I need to call a JSON web service with dates.  ...  '/Date(1392233750000-0600)/'
> As far as I am aware, JSON supports auto-serialization of a blessed object only if allow_blessed => 1 and convert_blessed => 1.
 
I'll look into that... It looks like I'll need to add a TO_JSON method to the DateTime object (which I'm not exactly sure how to do...)
 
Just to make things harder.  Since the remote service requires sort_by and performance of JSON::PP is so SLOW.  I'm using JSON::PP to encode and JSON::XS to decode.  It's crazy the things we have to do to get around implementations in the first place.
Thanks,
Mike    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/mailman/private/houston/attachments/20140213/7adccb81/attachment.html>


More information about the Houston mailing list