Category: JSON
Syntax:
jsonAddInt:String(json:String, value:Int)
String
Adds a whole number with no key, as an element of an array.
Takes json string and value integer.
Returns modified json via ReturnString.
View detailed documentation online
Local json:String = jsonBegin()
json = jsonBeginArrayField(json, "scores")
json = jsonAddInt(json, 7)
json = jsonAddInt(json, 12)
json = jsonEndArrayField(json)
json = jsonEnd(json)
Print json ; {"scores":[7,12]}
BambooBasic © 2026 Michael Denathorn