Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
JsonParser.h File Reference

Lightweight JSON parser/serializer for DBNode trees. More...

#include <memory>
#include <string>
#include <cctype>
#include <stdexcept>
#include <algorithm>
#include <stack>
#include "DBNode.h"
#include "IParser.h"
#include "Logger.h"
Include dependency graph for JsonParser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  JSONParser
 JSON implementation of the IParser interface. More...
 

Detailed Description

Lightweight JSON parser/serializer for DBNode trees.

JSONParser implements the IParser interface for a small, well-defined subset of JSON:

  • objects: { "key": value, ... }
  • arrays: [ value, value, ... ]
  • scalars: strings, numbers, booleans (true/false)

Parsed data is stored in the generic DBNode hierarchy, using:

  • keys mapped directly to DBNode children,
  • arrays encoded as nodes with numeric string keys ("0", "1", ...).

Definition in file JsonParser.h.