PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ find_json_value()

static json_t* pism::find_json_value ( json_t *  root,
const std::string &  name 
)
static

Given a 'path' "alice.bob.charlie", look for the JSON object 'bob' containing a key 'charlie' in the object 'alice'. Use the 'object' argument as the root.

In other words, 'path' describes a node of a tree with 'object' as the root, and this function returns the pointer to the node if found, and NULL otherwise.

Definition at line 38 of file ConfigJSON.cc.

References split().

Referenced by pism::ConfigJSON::get_numbers_impl(), get_value(), pism::ConfigJSON::is_set_impl(), and set_value().