Creates a new JSON object or a new JSON array from the given string.
It is highly recommended to delete every parsed JSON object and every parsed JSON array from the memory when it is not needed any longer. For every call of JsonParse should be a call of JsonFree.
Json.bdh
JsonParse( in jsonText : string ): number;
Parameter | Description |
---|---|
jsonText | The string representation of the new JSON object or the new JSON array |
transaction TMain var jsonText : string; jsonObject : number; begin WebParseDataBound(jsonText); WebPageUrl("http://mycompany.com/api/jsondata"); jsonObject := JsonParse(jsonText); ... JsonFree(jsonObject); end TMain;