json_array_append( array, json_pack("{"s:s","s:o"}, "Group",
"top", "values", array}})
but that doesn't work. Is there a way to do this?
I would like the final format to sort of like this :
[{ "Group" : "top" , "values" : {{ "v1":1}, {"v2":2}, {"v3":
,---. Rogerz Zhang ( @ @ ) Human, not octopus ).-.( Chase what you love. Let the rest go. '/|||\` Code > Github | Note > Tumblr | Random > twitter 微博 | Share > Google+ '|` AsciiArt < Shimrod(hh)
Thanks rogerz!!
you were right about my syntax--it was wrong.
That works better--I get the array added correctly, only the order is
backwards, but good enough maybe...
[{"values":[{"key1":value1},{"key2":value2},
{"key3":value3}, ...}],"Group":"top"}]
Is there a way to get {} instead of the inner []? It makes parsing
from the network easier.