Implementation of JsonService for loading, saving, and manipulating persistent JSON data. More...
#include "framework_config.h"
#include "DebugTrace.h"
#include "storage/JsonService.h"
#include <cstdio>
#include <cstdint>
#include <vector>
Go to the source code of this file.
Functions | |
nlohmann::json | mergeDefaults (const nlohmann::json &target, const nlohmann::json &defaults) |
Part of the PicoFramework application framework. Uses a StorageManager to load and store JSON documents on persistent storage. Supports fallback merge with default data and aliases for ease of use.
Definition in file JsonService.cpp.
nlohmann::json mergeDefaults | ( | const nlohmann::json & | target, |
const nlohmann::json & | defaults | ||
) |
Merge a default JSON structure into a target, preserving existing keys.
Merge a default JSON structure into a target, preserving existing keys.
Definition at line 26 of file JsonService.cpp.
References mergeDefaults().
Referenced by mergeDefaults().