[Interest] How to change nested JSON object directly

jack ma assangema at gmail.com
Wed Jan 11 23:09:23 CET 2017






if root is jsonObject, what I want is like this :

*jsonObject["key1"].toObject().value("key2") = "somteting2"*

but now , *toObect()* just return a copy of key1, so you can't change
key2 directly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170112/70d18938/attachment.html>

More information about the Interest mailing list