* 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
| 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 | /** |