Hi, now i am working with a Restful API, but the respond is a json object, there is a component, or built in unit in Delphi that can help me with that
Hi, now i am working with a Restful API, but the respond is a json object, there is a component, or built in unit in Delphi that can help me with that
thanks.
thanks.
Which Delphi version? XE3 has a JSON parser.
ReplyDeleteThere is "SuperObject". See http://code.google.com/p/superobject/
ReplyDeleteNow i am using xe2, but in the near future i will upgrade, so i will see for JSON parser, Thanks a lot.
ReplyDeleteDBXJSON unit for json support has been around since Delphi XE.
ReplyDeletehttp://docwiki.embarcadero.com/RADStudio/XE3/en/JSON
Download Marco Cantu's document and example:
http://app.en25.com/e/er.aspx?s=608&lid=4414&elq=d428643420d2494581299418d9753feb
I've seen reports that the Emb-JSON parser is not that good... Delphi WebScript project should have also one, fast one... Not used but seems up to job.... And mORMot project could have also something you could use...
ReplyDeleteThe EMB-JSON parser is s-l-o-w, but it works.
ReplyDeleteDWS also has a Delphi/FPC json parser (way faster than EMB-JSON):
ReplyDeletehttp://delphitools.info/2012/09/17/spotlight-on-dwsjson/
I built my own JSON library some time ago
ReplyDeletehttp://code.google.com/p/delphi-xe-json/
Using TSvSerializer you would be able to deserialize your model object from json. More info https://code.google.com/p/delphi-oop/wiki/SvSerializer
ReplyDelete