Begins a JSON array field with the specified key.
Takes json string and key string.
Returns modified json via ReturnString.
JSON
Parameters & Returns
Parameters
jsonString
keyString
Returns
String
Quick Summary
Begins a JSON array field with the specified key.
Takes json string and key string.
Returns modified json via ReturnString.
Technical Exegesis...
Begins a JSON array field with the specified key. Takes json string and key string. Calls NeedsComma to check if comma needed. If comma needed, appends ",". Appends "\"key\":[" format. Returns modified json via ReturnString.
This function starts array field in JSON object. NeedsComma helper prevents syntax errors. Format is JSON standard: "key":[. Opening bracket indicates array start. Use for array properties in JSON documents. Must be paired with jsonEndArrayField to close array.
Begins a JSON array field with the specified key. Takes json string and key string. Calls NeedsComma to check if comma needed. If comma needed, appends ",". Appends "\"key\":[" format. Returns modified json via ReturnString.
This function starts array field in JSON object. NeedsComma helper prevents syntax errors. Format is JSON standard: "key":[. Opening bracket indicates array start. Use for array properties in JSON documents. Must be paired with jsonEndArrayField to close array. Between begin/end, add elements using jsonBeginObject/jsonEndObject for object arrays, or jsonWriteInt/Double/String for primitive arrays. Common pattern: json = jsonBeginArrayField(json, "scores"), json = jsonBeginObject(json), add fields, json = jsonEndObject(json), json = jsonEndArrayField(json). Arrays can contain mixed types in JSON.