On 17/05/16 12:02, Larry Martell wrote:
On Mon, May 16, 2016 at 7:53 PM, Hamish Moffatt
wrote:
On 17/05/16 08:24, Larry Martell wrote:
I've see a lot of code that does something like this:
QJsonDocument document = QJsonDocument::fromJson(jsonData);
QJsonObject object = document.ob
On Mon, May 16, 2016 at 7:53 PM, Hamish Moffatt
wrote:
> On 17/05/16 08:24, Larry Martell wrote:
>>
>> I've see a lot of code that does something like this:
>>
>> QJsonDocument document = QJsonDocument::fromJson(jsonData);
>> QJsonObject object = document.object();
>> QJsonValue val
On 17/05/16 08:24, Larry Martell wrote:
I've see a lot of code that does something like this:
QJsonDocument document = QJsonDocument::fromJson(jsonData);
QJsonObject object = document.object();
QJsonValue value = object.value("capData");
But I don't want to hard code the keys - I
I am reading in a JSON file that looks like this:
{
"capData": {
"host": "foo.bar.com",
"initial_port": "8000"
"secondary_port": "8001"
},
"django": {
"host": "baz.bar.com",
"port": "8004"
}
}
I want to iterate through it and put the data in some structur