Re: [Cppcms-users] json
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-02-04 09:46:40
|
Show the exact full code, it isn't clear what are you doing/trying to do. Artyom On Thu, Feb 4, 2016 at 11:41 AM, Василий Теркин <par...@gm...> wrote: > All the ways to deserialize this string (or alternative - with nested json > inside array) to cppcms::json::value give undefined result. > > load() stops on '[' or something like that. > > (ver.1.0.5) > > > 2016-02-03 9:26 GMT+03:00 Artyom Beilis <art...@gm...>: >> >> Please explain me what are you trying to do as it seems to me from the >> first glance a valid json. >> >> Artyom >> P.S.: As usually I forgot to reply from GMail >> >> On Tue, Feb 2, 2016 at 12:08 PM, Василий Теркин <par...@gm...> >> wrote: >> > Hello >> > Is there a way to deal with json arrays like >> > {"units" : [{"id":1,"name":"test1"},{"id":2,"name":"test2"}]} >> > ? >> > I can't force cppcms to load such string into json without error. >> > The only way is to use nested array as string value for a while :( >> > |