MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / pvlGroupToJSON

Function pvlGroupToJSON

isis/src/base/objs/PvlToJSON/PvlToJSON.cpp:215–219  ·  view source on GitHub ↗

* Convert the contents of a PvlGroup to a JSON object. * Any comments in the group will be stored in "Comment". * Comments associated with keywords will be stored inside their json object. * * A simple example group * * PvlGroup: * * Group = TestGroup * TestKey1 = A * TestKey2 = 1 * End_Group * * * JSON: * * {"TestKey1":{"Value

Source from the content-addressed store, hash-verified

213 * @return @b json The contents of the group as a JSON object
214 */
215 json pvlGroupToJSON(PvlGroup &group) {
216 // PvlGroups are just PvlContainers with extra input/output options
217 // so we can just use the PvlContainer conversion directly.
218 return pvlContainerToJSON(group);;
219 }
220
221
222 /**

Callers 2

pvlObjectToJSONFunction · 0.85
TESTFunction · 0.85

Calls 1

pvlContainerToJSONFunction · 0.85

Tested by 1

TESTFunction · 0.68