I need to create an array which will give me the following json encoded output:
{"key1":"value1","key2":"value2","key3":[123,123]}
The question is about value 3 – it actually represents 2 numbers that i’m querying from my sqlite database that i want to save into one field, delimited by comma, and enclosed within square brackets.
can you tell me how to accomplish this? thanks.
Simply add a sub-array value:
See it in action.