Adds a string with no key, as an element of an array.
Takes json string and value string.
Returns modified json via ReturnString.
JSON
Parameters & Returns
Parameters
jsonString
valueString
Returns
String
Quick Summary
Adds a string with no key, as an element of an array.
Takes json string and value string.
Returns modified json via ReturnString.
Technical Exegesis...
Adds a string with no key, as an element of an array. Takes json string and value string. Adds a comma first if one is needed, then appends "value" (quotes and other special characters escaped, as jsonWriteString does). Returns the modified json.
Use between jsonBeginArrayField and jsonEndArrayField for an array of plain strings, such as "hobbies": ["Reading", "Cycling"]. jsonWriteString always writes a key, so it is for object fields, not array elements.
Adds a string with no key, as an element of an array. Takes json string and value string. Adds a comma first if one is needed, then appends "value" (quotes and other special characters escaped, as jsonWriteString does). Returns the modified json.
Use between jsonBeginArrayField and jsonEndArrayField for an array of plain strings, such as "hobbies": ["Reading", "Cycling"]. jsonWriteString always writes a key, so it is for object fields, not array elements. Read the elements back with jsonGetArrayCount and jsonGetArrayElement; jsonGetArrayElement gives a string element as it is in the JSON text, quotes included ("Reading").