[progress Communities] [progress Openedge Abl] Forum Post: Re: Pasoe Webhandler Escaping...

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
This is the result of the JSON library we use in ABL (which is based on YAJL https://lloyd.github.io/yajl/ ). I’m not sure what the REST adapter uses but clearly it handles these ‘better’. You can see the issue in ABL with the code below. using progress.json.objectmodel.*. def var o1 as Progress.Json.ObjectModel.JsonObject. o1 = new jsonobject(). o1: add ( 'f1' , string ( today )). message o1:getCharacter( 'f1' ) skip // 12/07/16 string (o1:getjsontext()) // {"f1":"12\/07\/16"} view-as alert-box . Does the client have a problem consuming it? JSON doesn’t have native dates so you have to use strings. See http://json.org and http://stackoverflow.com/questions/10286204/the-right-json-date-format#15952652 .

Continue reading...
 
Status
Not open for further replies.
Back
Top