Skip to content

Instantly share code, notes, and snippets.

@saidinesh5
saidinesh5 / nestedjson.cpp
Last active December 9, 2023 02:43
Get/Set values in nested QJsonObjects using "/path/to/key" syntax
#include <QJsonDocument>
#include <QJsonObject>
#include <QDebug>
static QString const &data = R"(
{
"persistentData": {
"module": {
"name": "fancy module",
"options": {}