Skip to content

[feature] Support JSON5 configuration input files

Giovanna Lazzari Miotto requested to merge feature/json-configuration into main

This MR introduces JSON5 parsing functionality to Config while still supporting the previous format and parser.


  1. Internal data structure in Config is changed from an STL map<string, string> to a Json::Value, as the latter is the more expressive one.
  2. Verifying the file's existence and opening it is done upon class construction (RAII).
  3. Templated Parse function acts on the open file handle according to the file format (filename ending: ".json5" / ".conf" supported)

Merge request reports