On 03/14/2012 12:54 PM, Vyshakh Ashok wrote:
> However i am getting the output as:
> So the question here is, why does the square brackets (shown in red)
> appear? Which means, the output is an Array?
> Whereas in the output which i wanted, it should be just a single JSON
> object, whose name is "session" and value is another JSON object having
> four name/value pairs.
>
> How do i get rid of this Square bracket?

That happens because you put the map (session) inside of an array 
(responseBody) and then you serialized responseBody.

Just serialize session (the QVariantMap instance).

Cheers
Flavio

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
QJson-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qjson-devel

Reply via email to