Both ASM + C backends.
Code: Select all
Structure CREATE_MESSAGE
content.s
nonce.s
tts.b
Array embeds.s(0)
EndStructure
jsonBuffer = CreateJSON(#PB_Any)
d.CREATE_MESSAGE
d\content = "hi"
InsertJSONStructure(jsonBuffer, @d, CREATE_MESSAGE)
Debug ComposeJSON(jsonBuffer, #PB_JSON_PrettyPrint)
Code: Select all
Structure CREATE_MESSAGE
content.s
nonce.s
tts.b
Array embeds.s(0)
EndStructure
jsonBuffer = CreateJSON(#PB_Any)
d.CREATE_MESSAGE
d\content = "hi"
InsertJSONStructure(JSONValue(jsonBuffer), @d, CREATE_MESSAGE)
Debug ComposeJSON(jsonBuffer, #PB_JSON_PrettyPrint)