I'm trying to create a json with multiple records by following this example: Generate a sample JSON with an array in it in Delphi XE5 must be the same way, except that when I add the array to the object
JSonObj.AddPair (TJSONPair.Create ('records', TJSONArray));
returns the error:
"There is the overloaded version of 'Create' that can be called with arguments These"
How do I add to the array object? If I convert an array to string and add, to receive the amounts can not treat as an array ...