![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
JSON utility functions for configuration parsing. More...
#include <nlohmann/json.hpp>#include <string>

Go to the source code of this file.
Typedefs | |
| using | pfc::ui::json = nlohmann::json |
Functions | |
| json | pfc::ui::get_json_value (const json &j, const std::string &key, const std::string §ion="") |
| Helper function to get a JSON value from either flat or nested structure. | |
JSON utility functions for configuration parsing.
This header provides helper functions for working with JSON configuration objects, particularly for handling both flat and nested JSON structures.
|
inline |
Helper function to get a JSON value from either flat or nested structure.
Supports both flat access (j["Lx"]) and nested access (j["domain"]["Lx"]). Checks nested location first if the key doesn't exist at top level.
| j | JSON object to search |
| key | Key to look for |
| section | Optional section name (e.g., "domain", "timestepping") |

