Xojo Plugin
Xojo Plugin
JSON Append String Array
See more JSON Examples
Demonstrates how to append an array of strings from a string table object.Note: This example uses the AppendStringTable method, which was introduced in Chilkat v9.5.0.67
Chilkat Xojo Plugin Downloads
Dim json As New Chilkat.JsonObject
json.EmitCompact = False
Dim success As Boolean
success = json.AppendString("abc","123")
Dim st As New Chilkat.StringTable
success = st.Append("a")
success = st.Append("b")
success = st.Append("c")
success = st.Append("d")
success = json.AppendStringArray("strArray",st)
System.DebugLog(json.Emit())
// Output:
// {
// "abc": "123",
// "strArray": [
// "a",
// "b",
// "c",
// "d"
// ]
// }