json Array Example 1
{
"Result": "OK",
"SomethingA": "1234",
"SomethingB": "A b c d",
"KeyValueArray":
{
"AnEntryA": "20",
"AnEntryB": "25",
"AnEntryC": "1"
},
"SimpleArray": ["apples", "oranges", "pairs"]
}
json Array Example 2
{
"Result": "OK",
"SomethingA": "1234",
"SomethingB": "A b c d",
"KeyValueArray":
[
{
"AnEntryA": "20"
},
{
"AnEntryB": "25"
},
{
"AnEntryC": "1",
"SomethingElse": "Q"
}
],
"SimpleArray": ["apples", "oranges", "pairs"]
}
json example 2
return ('{ "Result": "OK" }');
return ('{ "Result": "Error", "Reason": "Record not found" }');
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.