PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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().