Adds a decimal number with no key, as an element of an array.
Takes json string and value double.
Returns modified json via ReturnString.
JSON
Parameters & Returns
Parameters
jsonString
valueDouble
Returns
String
Quick Summary
Adds a decimal number with no key, as an element of an array.
Takes json string and value double.
Returns modified json via ReturnString.
Technical Exegesis...
Adds a decimal number with no key, as an element of an array. Takes json string and value double. Adds a comma first if one is needed, then appends the number, formatted as jsonWriteDouble does. Returns the modified json.
Use between jsonBeginArrayField and jsonEndArrayField for an array of decimal numbers, such as "position": [1.5, 2.25]. jsonWriteDouble always writes a key, so it is for object fields, not array elements.
Adds a decimal number with no key, as an element of an array. Takes json string and value double. Adds a comma first if one is needed, then appends the number, formatted as jsonWriteDouble does. Returns the modified json.
Use between jsonBeginArrayField and jsonEndArrayField for an array of decimal numbers, such as "position": [1.5, 2.25]. jsonWriteDouble always writes a key, so it is for object fields, not array elements. Read the elements back with jsonGetArrayCount and jsonGetArrayElement (ToDouble turns an element into a number). On the PS1 the value is a float, as with jsonWriteDouble.