Loading...
Searching...
No Matches
Json_module
casa package (libcasa_casa)

More...

## Topics

| Json_module_internal_classes
| Internal Json_module classes and functions.

## Classes

class | casacore::JsonError
| More...
class | casacore::JsonKVMap
| More...
class | casacore::JsonOut
| More...
class | casacore::JsonParser
| More...
class | casacore::JsonValue
| More...

## Detailed Description

Classes to read or write a JSON file

See below for an overview of the classes in this module.

### Synopsis

This module handles JSON input and output. It supports the full Json syntax (including null values) with the addition of complex numbers represented as a nested JSON struct with fields "r" and "i".
NaN and infinite floating point numbers are written as a null value.
It supports comments in the JSON file using C, C++ or Python style delimiters.

It consists of the following classes:

- JsonOut to create and populate a JSON file. Besides support of scalar values and std::vector, it also supports Array, Record and ValueHolder objects.
- JsonParser to parse a JSON file and store the results in a JsonKVMap object. The parser only accepts the rather strict JSON number representation.
- JsonKVMap to obtain the results from a parsed JSON file. It is possible to obtain a (possible nested) sequence as an Array object.