jsonAddDouble

Category: JSON

Syntax:

jsonAddDouble:String(json:String, value:Double)


Parameters

Returns

String



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.

View detailed documentation online



Example
Local json:String = jsonBegin()
json = jsonBeginArrayField(json, "position")
json = jsonAddDouble(json, 1.5)
json = jsonAddDouble(json, 2.25)
json = jsonEndArrayField(json)
json = jsonEnd(json)
Print json   ; {"position":[1.5,2.25]}

BambooBasic © 2026 Michael Denathorn