[
  {
    "path": ".clang-format",
    "content": "BasedOnStyle:  LLVM\nDerivePointerAlignment: false\nPointerAlignment: Left\nSpacesBeforeTrailingComments: 1\n"
  },
  {
    "path": ".clang-tidy",
    "content": "---\nChecks:          'google-readability-casting,modernize-deprecated-headers,modernize-loop-convert,modernize-use-auto,modernize-use-default-member-init,modernize-use-using,readability-else-after-return,readability-redundant-member-init,readability-redundant-string-cstr'\nWarningsAsErrors: ''\nHeaderFilterRegex: ''\nFormatStyle:     none\nCheckOptions:\n  - key:             modernize-use-using.IgnoreMacros\n    value:           '0'\n...\n\n"
  },
  {
    "path": ".gitattributes",
    "content": "*           text=auto\n*.h         text\n*.cpp       text\n*.json      text\n*.in        text\n*.sh        eol=lf\n*.bat       eol=crlf\n*.vcproj    eol=crlf\n*.vcxproj   eol=crlf\n*.sln       eol=crlf\ndevtools/agent_vm* eol=crlf\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the bug**\nA clear and concise description of what the bug is.\n\n**To Reproduce**\nSteps to reproduce the behavior:\n1.\n\n**Expected behavior**\nA clear and concise description of what you expected to happen.\n\n**Desktop (please complete the following information):**\n - OS: [e.g. iOS]\n - Meson version\n - Ninja version\n\n**Additional context**\nAdd any other context about the problem here.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your feature request related to a problem? Please describe.**\nA clear and concise description of what the problem is. Ex. I'm always frustrated when [...]\n\n**Describe the solution you'd like**\nA clear and concise description of what you want to happen.\n\n**Describe alternatives you've considered**\nA clear and concise description of any alternative solutions or features you've considered.\n\n**Additional context**\nAdd any other context or screenshots about the feature request here.\n"
  },
  {
    "path": ".github/workflows/clang-format.yml",
    "content": "name: clang-format check\non: [check_run, pull_request, push]\n\njobs:\n  formatting-check:\n    name: formatting check\n    runs-on: ubuntu-latest\n    strategy:\n      matrix:\n        path:\n          - 'src'\n          - 'examples'\n          - 'include'\n    steps:\n    - uses: actions/checkout@v4\n    - name: runs clang-format style check for C/C++/Protobuf programs.\n      uses: jidicula/clang-format-action@v4.13.0\n      with:\n        clang-format-version: '18'\n        check-path: ${{ matrix.path }}\n"
  },
  {
    "path": ".github/workflows/cmake.yml",
    "content": "name: cmake\non: [check_run, push, pull_request]\njobs:\n  cmake-publish:\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [ubuntu-latest, windows-latest, macos-latest]\n        \n    steps:\n      - name: checkout project\n        uses: actions/checkout@v4\n\n      - name: build project\n        uses: threeal/cmake-action@v2.0.0\n        \n"
  },
  {
    "path": ".github/workflows/meson.yml",
    "content": "name: meson build and test\nrun-name: update pushed to ${{ github.ref }}\non: [check_run, push, pull_request]\n\njobs:\n  meson-publish:\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [ubuntu-latest, windows-latest, macos-latest]\n\n    steps:     \n      - name: checkout repository\n        uses: actions/checkout@v4\n        \n      - name: setup python\n        uses: actions/setup-python@v5\n      \n      - name: meson build\n        uses: BSFishy/meson-build@v1.0.3\n        with:\n          meson-version: 1.5.1\n          ninja-version: 1.11.1.1\n          action: build\n  \n      - name: meson test\n        uses: BSFishy/meson-build@v1.0.3\n        with:\n          meson-version: 1.5.1\n          ninja-version: 1.11.1.1\n          action: test\n\n  meson-coverage:\n    runs-on: ubuntu-latest\n    \n    steps:\n      - name: checkout repository\n        uses: actions/checkout@v4\n        \n      - name: setup python\n        uses: actions/setup-python@v5\n      \n      - name: meson build\n        uses: BSFishy/meson-build@v1.0.3\n        with:\n          meson-version: 1.5.1\n          ninja-version: 1.11.1.1\n          setup-options: -Db_coverage=true\n          action: build \n  \n      - name: meson test\n        uses: BSFishy/meson-build@v1.0.3\n        with:\n          meson-version: 1.5.1\n          ninja-version: 1.11.1.1\n          setup-options: -Db_coverage=true\n          action: test\n\n      - name: generate code coverage report\n        uses: threeal/gcovr-action@v1.0.0\n        with:\n          coveralls-send: true\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n"
  },
  {
    "path": ".github/workflows/update-project-version.yml",
    "content": "name: \"update project version\"\n\non:\n  workflow_dispatch:\n    inputs:\n      target_version:\n        description: 'next version (e.g., 1.9.8)'\n        required: true\n        default: '1.9.8'\n      target_soversion:\n        description: 'next soversion (e.g., 28). leave blank to keep current.'\n        required: false\n\njobs:\n  bump-and-verify:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: write\n      pull-requests: write\n    steps:\n      - name: checkout code\n        uses: actions/checkout@v4\n\n      - name: update project files\n        run: |\n          VER=\"${{ github.event.inputs.target_version }}\"\n          SOVER=\"${{ github.event.inputs.target_soversion }}\"\n          echo \"bumping to $VER\"\n\n          # 1. cmakelists.txt\n          if [ -f CMakeLists.txt ]; then\n            sed -i \"/project.*jsoncpp/,/)/ s/VERSION [0-9.]*/VERSION $VER/\" CMakeLists.txt\n            if [ -n \"$SOVER\" ]; then\n              sed -i \"s/set(PROJECT_SOVERSION [0-9]*/set(PROJECT_SOVERSION $SOVER/\" CMakeLists.txt\n            fi\n          fi\n\n          # 2. meson.build\n          if [ -f meson.build ]; then\n            # targeting the version line directly\n            sed -i \"s/version[[:space:]]*:[[:space:]]*['\\\"][0-9.]*['\\\"]/version : '$VER'/\" meson.build\n            if [ -n \"$SOVER\" ]; then\n              sed -i \"s/soversion[[:space:]]*:[[:space:]]*['\\\"][0-9]*['\\\"]/soversion : '$SOVER'/\" meson.build\n            fi\n          fi\n\n          # 3. module.bazel\n          if [ -f MODULE.bazel ]; then\n            # match only the first 'version' occurrence in the file (the module version)\n            sed -i \"0,/version[[:space:]]*=[[:space:]]*['\\\"][0-9.]*['\\\"]/s//version = \\\"$VER\\\"/\" MODULE.bazel\n          fi\n\n          # 4. vcpkg.json\n          if [ -f vcpkg.json ]; then\n            jq --arg ver \"$VER\" '.version = $ver' vcpkg.json > tmp.json && mv tmp.json vcpkg.json\n          fi\n\n          # 5. include/json/version.h\n          if [ -f include/json/version.h ]; then\n            MAJOR=$(echo \"$VER\" | cut -d. -f1)\n            MINOR=$(echo \"$VER\" | cut -d. -f2)\n            PATCH=$(echo \"$VER\" | cut -d. -f3)\n\n            sed -i \"s/#define JSONCPP_VERSION_STRING \\\".*\\\"/#define JSONCPP_VERSION_STRING \\\"$VER\\\"/\" include/json/version.h\n            sed -i \"s/#define JSONCPP_VERSION_MAJOR [0-9]*/#define JSONCPP_VERSION_MAJOR $MAJOR/\" include/json/version.h\n            sed -i \"s/#define JSONCPP_VERSION_MINOR [0-9]*/#define JSONCPP_VERSION_MINOR $MINOR/\" include/json/version.h\n            sed -i \"s/#define JSONCPP_VERSION_PATCH [0-9]*/#define JSONCPP_VERSION_PATCH $PATCH/\" include/json/version.h\n          fi\n\n      - name: verify version macros\n        id: verify\n        run: |\n          FILE=\"include/json/version.h\"\n          if [ -f \"$FILE\" ]; then\n            # extract clean values by stripping everything except digits and dots\n            V_STR=$(grep \"JSONCPP_VERSION_STRING\" \"$FILE\" | head -n 1 | cut -d '\"' -f 2)\n            V_MAJ=$(grep \"JSONCPP_VERSION_MAJOR\" \"$FILE\" | head -n 1 | awk '{print $3}' | tr -cd '0-9')\n            V_MIN=$(grep \"JSONCPP_VERSION_MINOR\" \"$FILE\" | head -n 1 | awk '{print $3}' | tr -cd '0-9')\n            V_PAT=$(grep \"JSONCPP_VERSION_PATCH\" \"$FILE\" | head -n 1 | awk '{print $3}' | tr -cd '0-9')\n\n            # create a unique delimiter for the multi-line output\n            DELIM=$(dd if=/dev/urandom bs=15 count=1 2>/dev/null | base64)\n            echo \"report<<$DELIM\" >> $GITHUB_OUTPUT\n            echo \"| Macro | Value |\" >> $GITHUB_OUTPUT\n            echo \"| :--- | :--- |\" >> $GITHUB_OUTPUT\n            echo \"| STRING | \\`$V_STR\\` |\" >> $GITHUB_OUTPUT\n            echo \"| MAJOR | \\`$V_MAJ\\` |\" >> $GITHUB_OUTPUT\n            echo \"| MINOR | \\`$V_MIN\\` |\" >> $GITHUB_OUTPUT\n            echo \"| PATCH | \\`$V_PAT\\` |\" >> $GITHUB_OUTPUT\n            echo \"$DELIM\" >> $GITHUB_OUTPUT\n          fi\n\n      - name: sanity check (cmake configure)\n        run: |\n          if [ -f CMakeLists.txt ]; then\n            mkdir build_check && cd build_check\n            cmake .. -DJSONCPP_WITH_TESTS=OFF -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF\n            cd .. && rm -rf build_check\n          fi\n\n      - name: create pull request\n        uses: peter-evans/create-pull-request@v7\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          commit-message: \"chore: bump version to ${{ github.event.inputs.target_version }}\"\n          branch: \"bump-to-${{ github.event.inputs.target_version }}\"\n          title: \"chore: bump version to ${{ github.event.inputs.target_version }}\"\n          body: |\n            automated version bump.\n            - new version: `${{ github.event.inputs.target_version }}`\n            - new soversion: `${{ github.event.inputs.target_soversion || 'no change' }}`\n\n            ### header verification\n            ${{ steps.verify.outputs.report }}\n          labels: \"maintenance\"\n"
  },
  {
    "path": ".gitignore",
    "content": "/build/\n/build-*/\n*.pyc\n*.swp\n*.actual\n*.actual-rewrite\n*.process-output\n*.rewrite\n/bin/\n/libs/\n/doc/doxyfile\n/dist/\n/.cache/\n\n# MSVC project files:\n*.sln\n*.vcxproj\n*.filters\n*.user\n*.sdf\n*.opensdf\n*.suo\n\n# MSVC build files:\n*.lib\n*.obj\n*.tlog/\n*.pdb\n\n# CMake-generated files:\nCMakeFiles/\n/pkg-config/jsoncpp.pc\njsoncpp_lib_static.dir/\ncompile_commands.json\n\n# In case someone runs cmake in the root-dir:\n/CMakeCache.txt\n/Makefile\n/include/Makefile\n/src/Makefile\n/src/jsontestrunner/Makefile\n/src/jsontestrunner/jsontestrunner_exe\n/src/lib_json/Makefile\n/src/test_lib_json/Makefile\n/src/test_lib_json/jsoncpp_test\n*.a\n\n# eclipse project files\n.project\n.cproject\n/.settings/\n\n# DS_Store\n.DS_Store\n\n# temps\n/version\n\n# Bazel output paths\n/bazel-*\n/MODULE.bazel.lock\n"
  },
  {
    "path": "AUTHORS",
    "content": "Baptiste Lepilleur <blep@users.sourceforge.net>\n\nAaron Jacobs <aaronjjacobs@gmail.com>\nAaron Jacobs <jacobsa@google.com>\nAdam Boseley <ABoseley@agjunction.com>\nAdam Boseley <adam.boseley@gmail.com>\nAleksandr Derbenev <13alexac@gmail.com>\nAlexander Gazarov <DrMetallius@users.noreply.github.com>\nAlexander V. Brezgin <abrezgin@appliedtech.ru>\nAlexandr Brezgin <albrezgin@mail.ru>\nAlexey Kruchinin <alexey@mopals.com>\nAnton Indrawan <anton.indrawan@gmail.com>\nBaptiste Jonglez <git@bitsofnetworks.org>\nBaptiste Lepilleur <baptiste.lepilleur@gmail.com>\nBaruch Siach <baruch@tkos.co.il>\nBen Boeckel <mathstuf@gmail.com>\nBenjamin Knecht <bknecht@logitech.com>\nBernd Kuhls <bernd.kuhls@t-online.de>\nBilly Donahue <billy.donahue@gmail.com>\nBraden McDorman <bmcdorman@gmail.com>\nBrandon Myers <bmyers1788@gmail.com>\nBrendan Drew <brendan.drew@daqri.com>\nchason <cxchao802@gmail.com>\nchenguoping <chenguopingdota@163.com>\nChris Gilling <cgilling@iparadigms.com>\nChristopher Dawes <christopher.dawes.1981@googlemail.com>\nChristopher Dunn <cdunn2001@gmail.com>\nChuck Atkins <chuck.atkins@kitware.com>\nCody P Schafer <dev@codyps.com>\nConnor Manning <connor@hobu.co>\nCory Quammen <cory.quammen@kitware.com>\nCristóvão B da Cruz e Silva <CrisXed@gmail.com>\nDaniel Krügler <daniel.kruegler@gmail.com>\nDani-Hub <daniel.kruegler@googlemail.com>\nDan Liu <gzliudan>\ndatadiode <datadiode@users.noreply.github.com>\ndatadiode <jochen.neubeck@vodafone.de>\nDavid Seifert <soap@gentoo.org>\nDavid West <david-west@idexx.com>\ndawesc <chris.dawes@eftlab.co.uk>\nDevin Jeanpierre <jeanpierreda@google.com>\nDmitry Marakasov <amdmi3@amdmi3.ru>\ndominicpezzuto <dom@dompezzuto.com>\nDon Milham <dmilham@gmail.com>\ndrgler <daniel.kruegler@gmail.com>\nds283 <D.Seery@sussex.ac.uk>\nEgor Tensin <Egor.Tensin@gmail.com>\neightnoteight <mr.eightnoteight@gmail.com>\nEvince <baneyue@gmail.com>\nfilipjs <filipjs@users.noreply.github.com>\nfindblar <ft@finbarr.ca>\nFlorian Meier <florian.meier@koalo.de>\nGaëtan Lehmann <gaetan.lehmann@gmail.com>\nGaurav <g.gupta@samsung.com>\nGergely Nagy <ngg@ngg.hu>\nGida Pataki <gida.pataki@prezi.com>\nI3ck <buckmartin@buckmartin.de>\nIñaki Baz Castillo <ibc@aliax.net>\nJacco <jacco@geul.net>\nJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>\nJonas Platte <mail@jonasplatte.de>\nJordan Bayles <bayles.jordan@gmail.com>\nJörg Krause <joerg.krause@embedded.rocks>\nKeith Lea <keith@whamcitylights.com>\nKevin Grant <kbradleygrant@gmail.com>\nKirill V. Lyadvinsky <jia3ep@gmail.com>\nKirill V. Lyadvinsky <mail@codeatcpp.com>\nKobi Gurkan <kobigurk@gmail.com>\nMagnus Bjerke Vik <mbvett@gmail.com>\nMalay Shah <malays@users.sourceforge.net>\nMara Kim <hacker.root@gmail.com>\nMarek Kotewicz <marek.kotewicz@gmail.com>\nMark Lakata <mark@lakata.org>\nMark Zeren <mzeren@vmware.com>\nMartin Buck <buckmartin@buckmartin.de>\nMartyn Gigg <martyn.gigg@gmail.com>\nMattes D <github@xoft.cz>\nMatthias Loy <matthias.loy@hbm.com>\nMerlyn Morgan-Graham <kavika@gmail.com>\nMichael Shields <mshields@google.com>\nMichał Górny <mgorny@gentoo.org>\nMike Naberezny <mike@naberezny.com>\nmloy <matthias.loy@googlemail.com>\nMotti <lanzkron@gmail.com>\nnnkur <nnkur@mail.ru>\nOmkar Wagh <owagh@owaghlinux.ny.tower-research.com>\npaulo <paulobrizolara@users.noreply.github.com>\npavel.pimenov <pavel.pimenov@gmail.com>\nPaweł Bylica <chfast@gmail.com>\nPéricles Lopes Machado <pericles.raskolnikoff@gmail.com>\nPeter Spiess-Knafl <psk@autistici.org>\npffang <pffang@vip.qq.com>\nRémi Verschelde <remi@verschelde.fr>\nrenu555 <renu.tyagi@samsung.com>\nRobert Dailey <rcdailey@gmail.com>\nSam Clegg <sbc@chromium.org>\nselaselah <selah@outlook.com>\nSergiy80 <sil2004@gmail.com>\nsergzub <sergzub@gmail.com>\nStefan Schweter <stefan@schweter.it>\nStefano Fiorentino <stefano.fiore84@gmail.com>\nSteffen Kieß <Steffen.Kiess@ipvs.uni-stuttgart.de>\nSteven Hahn <hahnse@ornl.gov>\nStuart Eichert <stuart@fivemicro.com>\nSuperManitu <supermanitu@gmail.com>\nTechwolf <dring@g33kworld.net>\nTengiz Sharafiev <btolfa+github@gmail.com>\nTomasz Maciejewski <tmaciejewsk@gmail.com>\nVicente Olivert Riera <Vincent.Riera@imgtec.com>\nxiaoyur347 <xiaoyur347@gmail.com>\nycqiu <429148848@qq.com>\nyiqiju <fred_ju@selinc.com>\nYu Xiaolei <dreifachstein@gmail.com>\n\nGoogle Inc.\n"
  },
  {
    "path": "BUILD.bazel",
    "content": "load(\"@bazel_skylib//rules:common_settings.bzl\", \"bool_flag\")\nload(\"@rules_cc//cc:cc_library.bzl\", \"cc_library\")\n\nlicenses([\"unencumbered\"])  # Public Domain or MIT\n\nexports_files([\"LICENSE\"])\n\nbool_flag(\n    name = \"use_exception\",\n    build_setting_default = False,\n)\n\nconfig_setting(\n    name = \"use_exception_cfg\",\n    flag_values = {\":use_exception\": \"true\"},\n)\n\nbool_flag(\n    name = \"has_int64\",\n    build_setting_default = True,\n)\n\nconfig_setting(\n    name = \"has_int64_cfg\",\n    flag_values = {\":has_int64\": \"true\"},\n)\n\ncc_library(\n    name = \"jsoncpp\",\n    srcs = [\n        \"src/lib_json/json_reader.cpp\",\n        \"src/lib_json/json_tool.h\",\n        \"src/lib_json/json_value.cpp\",\n        \"src/lib_json/json_writer.cpp\",\n    ],\n    hdrs = [\n        \"include/json/allocator.h\",\n        \"include/json/assertions.h\",\n        \"include/json/config.h\",\n        \"include/json/forwards.h\",\n        \"include/json/json.h\",\n        \"include/json/json_features.h\",\n        \"include/json/reader.h\",\n        \"include/json/value.h\",\n        \"include/json/version.h\",\n        \"include/json/writer.h\",\n    ],\n    defines = select({\n        \":use_exception_cfg\": [\"JSON_USE_EXCEPTION=1\"],\n        \"//conditions:default\": [\"JSON_USE_EXCEPTION=0\"],\n    }) + select({\n        \":has_int64_cfg\": [\"JSON_HAS_INT64\"],\n        \"//conditions:default\": [],\n    }),\n    includes = [\"include\"],\n    visibility = [\"//visibility:public\"],\n    deps = [\":private\"],\n)\n\ncc_library(\n    name = \"private\",\n    textual_hdrs = [\"src/lib_json/json_valueiterator.inl\"],\n)\n"
  },
  {
    "path": "CMakeLists.txt",
    "content": "# vim: et ts=4 sts=4 sw=4 tw=0\n\n# ==== Define cmake build policies that affect compilation and linkage default behaviors\n#\n# Set the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION string to the newest cmake version\n# policies that provide successful builds. By setting JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION\n# to a value greater than the oldest policies, all policies between\n# JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION and CMAKE_VERSION (used for this build)\n# are set to their NEW behavior, thereby suppressing policy warnings related to policies\n# between the JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION and CMAKE_VERSION.\n#\n# CMake versions greater than the JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION policies will\n# continue to generate policy warnings \"CMake Warning (dev)...Policy CMP0XXX is not set:\"\n#\nset(JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION \"3.10.0\")\nset(JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION \"3.13.2\")\ncmake_minimum_required(VERSION ${JSONCPP_OLDEST_VALIDATED_POLICIES_VERSION})\nif(\"${CMAKE_VERSION}\" VERSION_LESS \"${JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION}\")\n    #Set and use the newest available cmake policies that are validated to work\n    set(JSONCPP_CMAKE_POLICY_VERSION \"${CMAKE_VERSION}\")\nelse()\n    set(JSONCPP_CMAKE_POLICY_VERSION \"${JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION}\")\nendif()\ncmake_policy(VERSION ${JSONCPP_CMAKE_POLICY_VERSION})\nif(POLICY CMP0091)\n    cmake_policy(SET CMP0091 NEW)\nendif()\n#\n# Now enumerate specific policies newer than JSONCPP_NEWEST_VALIDATED_POLICIES_VERSION\n# that may need to be individually set to NEW/OLD\n#\nforeach(pnew \"\") # Currently Empty\n    if(POLICY ${pnew})\n        cmake_policy(SET ${pnew} NEW)\n    endif()\nendforeach()\nforeach(pold \"\") # Currently Empty\n    if(POLICY ${pold})\n        cmake_policy(SET ${pold} OLD)\n    endif()\nendforeach()\n\n# Ensure that CMAKE_BUILD_TYPE has a value specified for single configuration generators.\nif(NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES)\n    set(CMAKE_BUILD_TYPE Release CACHE STRING\n        \"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage.\")\nendif()\n\nset(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} \"${CMAKE_CURRENT_SOURCE_DIR}/cmake\")\n\nproject(jsoncpp\n        # Note: version must be updated in four places when doing a release. This\n        # annoying process ensures that amalgamate, CMake, and meson all report the\n        # correct version.\n        # 1. ./meson.build\n        # 2. ./include/json/version.h\n        # 3. ./CMakeLists.txt\n        # 4. ./MODULE.bazel\n        # IMPORTANT: also update the PROJECT_SOVERSION!!\n        VERSION 1.9.8 # <major>[.<minor>[.<patch>[.<tweak>]]]\n        LANGUAGES CXX)\n\nmessage(STATUS \"JsonCpp Version: ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}\")\nset(PROJECT_SOVERSION 27)\n\ninclude(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInSourceBuilds.cmake)\ninclude(${CMAKE_CURRENT_SOURCE_DIR}/include/PreventInBuildInstalls.cmake)\n\noption(JSONCPP_WITH_TESTS \"Compile and (for jsoncpp_check) run JsonCpp test executables\" ON)\noption(JSONCPP_WITH_POST_BUILD_UNITTEST \"Automatically run unit-tests as a post build step\" ON)\noption(JSONCPP_WITH_WARNING_AS_ERROR \"Force compilation to fail if a warning occurs\" OFF)\noption(JSONCPP_WITH_STRICT_ISO \"Issue all the warnings demanded by strict ISO C and ISO C++\" ON)\noption(JSONCPP_WITH_PKGCONFIG_SUPPORT \"Generate and install .pc files\" ON)\noption(JSONCPP_WITH_CMAKE_PACKAGE \"Generate and install cmake package files\" ON)\noption(JSONCPP_WITH_EXAMPLE \"Compile JsonCpp example\" OFF)\noption(JSONCPP_WITH_INSTALL \"Include JsonCpp header and binaries in the install target\" ON)\noption(JSONCPP_STATIC_WINDOWS_RUNTIME \"Use static (MT/MTd) Windows runtime\" OFF)\noption(BUILD_SHARED_LIBS \"Build jsoncpp_lib as a shared library.\" ON)\noption(BUILD_STATIC_LIBS \"Build jsoncpp_lib as a static library.\" ON)\noption(BUILD_OBJECT_LIBS \"Build jsoncpp_lib as a object library.\" ON)\n\n# Adhere to GNU filesystem layout conventions\ninclude(GNUInstallDirs)\n\nif(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)\n    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY \"${CMAKE_BINARY_DIR}/lib\" CACHE PATH \"Archive output dir.\")\n    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY \"${CMAKE_BINARY_DIR}/lib\" CACHE PATH \"Library output dir.\")\n    set(CMAKE_PDB_OUTPUT_DIRECTORY     \"${CMAKE_BINARY_DIR}/bin\" CACHE PATH \"PDB (MSVC debug symbol)output dir.\")\n    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \"${CMAKE_BINARY_DIR}/bin\" CACHE PATH \"Executable/dll output dir.\")\nendif()\n\ninclude(CheckFunctionExists)\ncheck_function_exists(memset_s HAVE_MEMSET_S)\nif(HAVE_MEMSET_S)\n    add_definitions(\"-DHAVE_MEMSET_S=1\")\nendif()\n\nif(JSONCPP_USE_SECURE_MEMORY)\n    add_definitions(\"-DJSONCPP_USE_SECURE_MEMORY=1\")\nendif()\n\nconfigure_file(\"${PROJECT_SOURCE_DIR}/version.in\"\n    \"${PROJECT_BINARY_DIR}/version\"\n    NEWLINE_STYLE UNIX)\n\nmacro(use_compilation_warning_as_error)\n    if(MSVC)\n        # Only enabled in debug because some old versions of VS STL generate\n        # warnings when compiled in release configuration.\n        add_compile_options($<$<CONFIG:Debug>:/WX>)\n    elseif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\n        add_compile_options(-Werror)\n        if(JSONCPP_WITH_STRICT_ISO)\n            add_compile_options(-pedantic-errors)\n        endif()\n    endif()\nendmacro()\n\n# Include our configuration header\ninclude_directories(${jsoncpp_SOURCE_DIR}/include)\n\nif(MSVC)\n    # Only enabled in debug because some old versions of VS STL generate\n    # unreachable code warning when compiled in release configuration.\n    add_compile_options($<$<CONFIG:Debug>:/W4>)\n    if (JSONCPP_STATIC_WINDOWS_RUNTIME)\n        set(CMAKE_MSVC_RUNTIME_LIBRARY \"MultiThreaded$<$<CONFIG:Debug>:Debug>\")\n    endif()\nendif()\n\nif(CMAKE_CXX_COMPILER_ID MATCHES \"Clang\")\n    # using regular Clang or AppleClang\n    add_compile_options(-Wall -Wconversion -Wshadow)\n\n    if(JSONCPP_WITH_WARNING_AS_ERROR)\n        add_compile_options(-Werror=conversion -Werror=sign-compare)\n    endif()\nelseif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\")\n    # using GCC\n    add_compile_options(-Wall -Wconversion -Wshadow -Wextra)\n    # not yet ready for -Wsign-conversion\n\n    if(JSONCPP_WITH_STRICT_ISO)\n        add_compile_options(-Wpedantic)\n    endif()\n    if(JSONCPP_WITH_WARNING_AS_ERROR)\n        add_compile_options(-Werror=conversion)\n    endif()\nelseif(CMAKE_CXX_COMPILER_ID STREQUAL \"Intel\")\n    # using Intel compiler\n    add_compile_options(-Wall -Wconversion -Wshadow -Wextra)\n\n    if(JSONCPP_WITH_WARNING_AS_ERROR)\n        add_compile_options(-Werror=conversion)\n    elseif(JSONCPP_WITH_STRICT_ISO)\n        add_compile_options(-Wpedantic)\n    endif()\nendif()\n\nif(JSONCPP_WITH_WARNING_AS_ERROR)\n    use_compilation_warning_as_error()\nendif()\n\nif(JSONCPP_WITH_PKGCONFIG_SUPPORT)\n    include(JoinPaths)\n\n    join_paths(libdir_for_pc_file \"\\${exec_prefix}\" \"${CMAKE_INSTALL_LIBDIR}\")\n    join_paths(includedir_for_pc_file \"\\${prefix}\" \"${CMAKE_INSTALL_INCLUDEDIR}\")\n\n    configure_file(\n        \"pkg-config/jsoncpp.pc.in\"\n        \"pkg-config/jsoncpp.pc\"\n        @ONLY)\n    install(FILES \"${CMAKE_CURRENT_BINARY_DIR}/pkg-config/jsoncpp.pc\"\n        DESTINATION \"${CMAKE_INSTALL_LIBDIR}/pkgconfig\")\nendif()\n\nif(JSONCPP_WITH_CMAKE_PACKAGE)\n    include(CMakePackageConfigHelpers)\n    install(EXPORT jsoncpp\n        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp\n        FILE        jsoncpp-targets.cmake)\n    configure_package_config_file(jsoncppConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfig.cmake\n        INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp)\n\n    write_basic_package_version_file(\"${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfigVersion.cmake\"\n        VERSION ${PROJECT_VERSION}\n        COMPATIBILITY SameMajorVersion)\n    install(FILES\n        ${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfigVersion.cmake ${CMAKE_CURRENT_BINARY_DIR}/jsoncppConfig.cmake\n        ${CMAKE_CURRENT_SOURCE_DIR}/jsoncpp-namespaced-targets.cmake\n        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/jsoncpp)\nendif()\n\nif(JSONCPP_WITH_TESTS)\n    enable_testing()\n    include(CTest)\nendif()\n\n# Build the different applications\nadd_subdirectory(src)\n\n#install the includes\nadd_subdirectory(include)\n\n#install the example\nif(JSONCPP_WITH_EXAMPLE)\n    add_subdirectory(example)\nendif()\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to JsonCpp\n\n## Building\n\nBoth CMake and Meson tools are capable of generating a variety of build environments for you preferred development environment.\nUsing cmake or meson you can generate an XCode, Visual Studio, Unix Makefile, Ninja, or other environment that fits your needs.\n\nAn example of a common Meson/Ninja environment is described next.\n\n## Building and testing with Meson/Ninja\nThanks to David Seifert (@SoapGentoo), we (the maintainers) now use\n[meson](http://mesonbuild.com/) and [ninja](https://ninja-build.org/) to build\nfor debugging, as well as for continuous integration (see\n[`./.travis_scripts/meson_builder.sh`](./.travis_scripts/meson_builder.sh) ). Other systems may work, but minor\nthings like version strings might break.\n\nFirst, install both meson (which requires Python3) and ninja.\nIf you wish to install to a directory other than /usr/local, set an environment variable called DESTDIR with the desired path:\n    DESTDIR=/path/to/install/dir\n\nThen,\n```sh\n    cd jsoncpp/\n    BUILD_TYPE=debug\n    #BUILD_TYPE=release\n    LIB_TYPE=shared\n    #LIB_TYPE=static\n    meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}\n    ninja -v -C build-${LIB_TYPE}\n\n    ninja -C build-static/ test\n\n    # Or\n    #cd build-${LIB_TYPE}\n    #meson test --no-rebuild --print-errorlogs\n\n    sudo ninja install\n```\n\n## Building and testing with other build systems\nSee https://github.com/open-source-parsers/jsoncpp/wiki/Building\n\n## Running the tests manually\n\nYou need to run tests manually only if you are troubleshooting an issue.\n\nIn the instructions below, replace `path/to/jsontest` with the path of the\n`jsontest` executable that was compiled on your platform.\n\n    cd test\n    # This will run the Reader/Writer tests\n    python runjsontests.py path/to/jsontest\n\n    # This will run the Reader/Writer tests, using JSONChecker test suite\n    # (http://www.json.org/JSON_checker/).\n    # Notes: not all tests pass: JsonCpp is too lenient (for example,\n    # it allows an integer to start with '0'). The goal is to improve\n    # strict mode parsing to get all tests to pass.\n    python runjsontests.py --with-json-checker path/to/jsontest\n\n    # This will run the unit tests (mostly Value)\n    python rununittests.py path/to/test_lib_json\n\n    # You can run the tests using valgrind:\n    python rununittests.py --valgrind path/to/test_lib_json\n\n## Building the documentation\n\nRun the Python script `doxybuild.py` from the top directory:\n\n    python doxybuild.py --doxygen=$(which doxygen) --open --with-dot\n\nSee `doxybuild.py --help` for options.\n\n## Adding a reader/writer test\n\nTo add a test, you need to create two files in test/data:\n\n* a `TESTNAME.json` file, that contains the input document in JSON format.\n* a `TESTNAME.expected` file, that contains a flattened representation of the\n  input document.\n\nThe `TESTNAME.expected` file format is as follows:\n\n* Each line represents a JSON element of the element tree represented by the\n  input document.\n* Each line has two parts: the path to access the element separated from the\n  element value by `=`. Array and object values are always empty (i.e.\n  represented by either `[]` or `{}`).\n* Element path `.` represents the root element, and is used to separate object\n  members. `[N]` is used to specify the value of an array element at index `N`.\n\nSee the examples `test_complex_01.json` and `test_complex_01.expected` to better understand element paths.\n\n## Understanding reader/writer test output\n\nWhen a test is run, output files are generated beside the input test files. Below is a short description of the content of each file:\n\n* `test_complex_01.json`: input JSON document.\n* `test_complex_01.expected`: flattened JSON element tree used to check if\n  parsing was corrected.\n* `test_complex_01.actual`: flattened JSON element tree produced by `jsontest`\n  from reading `test_complex_01.json`.\n* `test_complex_01.rewrite`: JSON document written by `jsontest` using the\n  `Json::Value` parsed from `test_complex_01.json` and serialized using\n  `Json::StyledWritter`.\n* `test_complex_01.actual-rewrite`: flattened JSON element tree produced by\n  `jsontest` from reading `test_complex_01.rewrite`.\n* `test_complex_01.process-output`: `jsontest` output, typically useful for\n  understanding parsing errors.\n\n## Versioning rules\n\nConsumers of this library require a strict approach to incrementing versioning of the JsonCpp library. Currently, we follow the below set of rules:\n\n* Any new public symbols require a minor version bump.\n* Any alteration or removal of public symbols requires a major version bump, including changing the size of a class. This is necessary for\nconsumers to do dependency injection properly.\n\n## Preparing code for submission\n\nGenerally, JsonCpp's style guide has been pretty relaxed, with the following common themes:\n\n* Variables and function names use lower camel case (E.g. parseValue or collectComments).\n* Class use camel case (e.g. OurReader)\n* Member variables have a trailing underscore\n* Prefer `nullptr` over `NULL`.\n* Passing by non-const reference is allowed.\n* Single statement if blocks may omit brackets.\n* Generally prefer less space over more space.\n\nFor an example:\n\n```c++\nbool Reader::decodeNumber(Token& token) {\n  Value decoded;\n  if (!decodeNumber(token, decoded))\n    return false;\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n```\n\nBefore submitting your code, ensure that you meet the versioning requirements above, follow the style guide of the file you are modifying (or the above rules for new files), and run clang format. Meson exposes clang format with the following command:\n```\nninja -v -C build-${LIB_TYPE}/ clang-format\n```\n\nFor convenience, you can also run the `reformat.sh` script located in the root directory.\n\n"
  },
  {
    "path": "CTestConfig.cmake",
    "content": "## This file should be placed in the root directory of your project.\n## Then modify the CMakeLists.txt file in the root directory of your\n## project to incorporate the testing dashboard.\n##\n## # The following are required to submit to the CDash dashboard:\n##   ENABLE_TESTING()\n##   INCLUDE(CTest)\n\nset(CTEST_PROJECT_NAME \"jsoncpp\")\nset(CTEST_NIGHTLY_START_TIME \"01:23:45 UTC\")\n\nset(CTEST_DROP_METHOD \"https\")\nset(CTEST_DROP_SITE \"my.cdash.org\")\nset(CTEST_DROP_LOCATION \"/submit.php?project=jsoncpp\")\nset(CTEST_DROP_SITE_CDASH TRUE)\n"
  },
  {
    "path": "LICENSE",
    "content": "The JsonCpp library's source code, including accompanying documentation,\ntests and demonstration applications, are licensed under the following\nconditions...\n\nBaptiste Lepilleur and The JsonCpp Authors explicitly disclaim copyright in all\njurisdictions which recognize such a disclaimer. In such jurisdictions,\nthis software is released into the Public Domain.\n\nIn jurisdictions which do not recognize Public Domain property (e.g. Germany as of\n2010), this software is Copyright (c) 2007-2010 by Baptiste Lepilleur and\nThe JsonCpp Authors, and is released under the terms of the MIT License (see below).\n\nIn jurisdictions which recognize Public Domain property, the user of this\nsoftware may choose to accept it either as 1) Public Domain, 2) under the\nconditions of the MIT License (see below), or 3) under the terms of dual\nPublic Domain/MIT License conditions described here, as they choose.\n\nThe MIT License is about as close to Public Domain as a license can get, and is\ndescribed in clear, concise terms at:\n\n   http://en.wikipedia.org/wiki/MIT_License\n\nThe full text of the MIT License follows:\n\n========================================================================\nCopyright (c) 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use, copy,\nmodify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS\nBE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\nACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n========================================================================\n(END LICENSE TEXT)\n\nThe MIT license is compatible with both the GPL and commercial\nsoftware, affording one all of the rights of Public Domain with the\nminor nuisance of being required to keep the above copyright notice\nand license text in the source code. Note also that by accepting the\nPublic Domain \"license\" you can re-license your copy using whatever\nlicense you like.\n"
  },
  {
    "path": "MODULE.bazel",
    "content": "module(\n    name = \"jsoncpp\",\n\n    # Note: version must be updated in four places when doing a release. This\n    # annoying process ensures that amalgamate, CMake, and meson all report the\n    # correct version.\n    # 1. /meson.build\n    # 2. /include/json/version.h\n    # 3. /CMakeLists.txt\n    # 4. /MODULE.bazel\n    # IMPORTANT: also update the SOVERSION!!\n    version = \"1.9.8\",\n    compatibility_level = 1,\n)\n\nbazel_dep(\n    name = \"bazel_skylib\",\n    version = \"1.7.1\",\n)\nbazel_dep(\n    name = \"rules_cc\",\n    version = \"0.0.17\",\n)\nbazel_dep(\n    name = \"rules_python\",\n    version = \"1.0.0\",\n)\n"
  },
  {
    "path": "README.md",
    "content": "# JsonCpp\n\n[![Conan Center](https://img.shields.io/conan/v/jsoncpp)](https://conan.io/center/recipes/jsoncpp)\n[![badge](https://img.shields.io/badge/license-MIT-blue)](https://github.com/open-source-parsers/jsoncpp/blob/master/LICENSE)\n[![badge](https://img.shields.io/badge/document-doxygen-brightgreen)](http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html)\n[![Coverage Status](https://coveralls.io/repos/github/open-source-parsers/jsoncpp/badge.svg?branch=master)](https://coveralls.io/github/open-source-parsers/jsoncpp?branch=master)\n\n[JSON][json-org] is a lightweight data-interchange format. It can represent\nnumbers, strings, ordered sequences of values, and collections of name/value\npairs.\n\n[json-org]: http://json.org/\n\nJsonCpp is a C++ library that allows manipulating JSON values, including\nserialization and deserialization to and from strings. It can also preserve\nexisting comment in deserialization/serialization steps, making it a convenient\nformat to store user input files.\n\n## Project Status\n\nJsonCpp is a mature project in maintenance mode. Our priority is providing a stable,\nreliable JSON library for the long tail of C++ development.\n\n### Current Focus\n\n* **Security:** Addressing vulnerabilities and fuzzing results.\n* **Compatibility:** Ensuring the library builds without warnings on the latest versions of GCC,\nClang, and MSVC.\n* **Reliability:** Fixing regressions and critical logical bugs.\n\n### Out of Scope\n\n* **Performance:** We are not competing with SIMD-accelerated or reflection-based parsers.\n* **Features:** We are generally not accepting requests for new data formats or major API changes.\n\nJsonCpp remains a primary choice for developers who require comment preservation and support for\nlegacy toolchains where modern C++ standards are unavailable. The library is intended to be a\nreliable dependency that does not require frequent updates or major migration efforts.\n\n## A note on backward-compatibility\n\n* **`1.y.z` (master):** Actively maintained. Requires C++11.\n\n* **`0.y.z`:** Legacy support for pre-C++11 compilers. Maintenance is limited to critical security fixes.\n\n* **`00.11.z`:** Discontinued.\n\nMajor versions maintain binary compatibility. Critical security fixes are accepted for both the `master` and `0.y.z` branches.\n\n## Integration\n\n> [!NOTE]\n> Package manager ports (vcpkg, Conan, etc.) are community-maintained. Please report outdated versions or missing generators to their respective repositories.\n\n### vcpkg\nAdd `jsoncpp` to your `vcpkg.json` manifest:\n\n```json\n{\n  \"dependencies\": [\"jsoncpp\"]\n}\n```\n\nOr install via classic mode: `vcpkg install jsoncpp`.\n\n### Conan\n\n```sh\nconan install --requires=\"jsoncpp/[*]\" --build=missing\n```\n\nIf you are using a `conanfile.txt` in a Conan 2 project, ensure you use the appropriate generators:\n\n```ini\n[requires]\njsoncpp/[*]\n\n[generators]\nCMakeToolchain\nCMakeDeps\n```\n\n### Meson\n\n```sh\nmeson wrap install jsoncpp\n```\n\n### Amalgamated source\n\n> [!NOTE]\n> This approach may be outdated.\n\nFor projects requiring a single-header approach, see the [Wiki entry](https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated)).\n\n## Documentation\n\nDocumentation is generated via [Doxygen](http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html). \nAdditional information is available on the [Project Wiki](https://github.com/open-source-parsers/jsoncpp/wiki).\n\n## License\n\nJsonCpp is licensed under the MIT license, or public domain where recognized.\nSee [LICENSE](./LICENSE) for details.\n"
  },
  {
    "path": "SECURITY.md",
    "content": "# Security Policy\n\nIf you have discovered a security vulnerability in this project, please report it\nprivately. **Do not disclose it as a public issue.** This gives us time to work with you\nto fix the issue before public exposure, reducing the chance that the exploit will be\nused before a patch is released.\n\nPlease submit the report by filling out\n[this form](https://github.com/open-source-parsers/jsoncpp/security/advisories/new).\n\nPlease provide the following information in your report:\n\n- A description of the vulnerability and its impact\n- How to reproduce the issue\n\nThis project is maintained by volunteers on a reasonable-effort basis. As such,\nwe ask that you give us 90 days to work on a fix before public exposure.\n"
  },
  {
    "path": "amalgamate.py",
    "content": "#!/usr/bin/env python\n\n\"\"\"Amalgamate json-cpp library sources into a single source and header file.\n\nWorks with python2.6+ and python3.4+.\n\nExample of invocation (must be invoked from json-cpp top directory):\npython amalgamate.py\n\"\"\"\nimport os\nimport os.path\nimport sys\n\nINCLUDE_PATH = \"include/json\"\nSRC_PATH = \"src/lib_json\"\n\nclass AmalgamationFile:\n    def __init__(self, top_dir):\n        self.top_dir = top_dir\n        self.blocks = []\n\n    def add_text(self, text):\n        if not text.endswith(\"\\n\"):\n            text += \"\\n\"\n        self.blocks.append(text)\n\n    def add_file(self, relative_input_path, wrap_in_comment=False):\n        def add_marker(prefix):\n            self.add_text(\"\")\n            self.add_text(\"// \" + \"/\"*70)\n            self.add_text(\"// %s of content of file: %s\" % (prefix, relative_input_path.replace(\"\\\\\",\"/\")))\n            self.add_text(\"// \" + \"/\"*70)\n            self.add_text(\"\")\n        add_marker(\"Beginning\")\n        f = open(os.path.join(self.top_dir, relative_input_path), \"rt\")\n        content = f.read()\n        if wrap_in_comment:\n            content = \"/*\\n\" + content + \"\\n*/\"\n        self.add_text(content)\n        f.close()\n        add_marker(\"End\")\n        self.add_text(\"\\n\\n\\n\\n\")\n\n    def get_value(self):\n        return \"\".join(self.blocks).replace(\"\\r\\n\",\"\\n\")\n\n    def write_to(self, output_path):\n        output_dir = os.path.dirname(output_path)\n        if output_dir and not os.path.isdir(output_dir):\n            os.makedirs(output_dir)\n        f = open(output_path, \"wb\")\n        f.write(str.encode(self.get_value(), 'UTF-8'))\n        f.close()\n\ndef amalgamate_source(source_top_dir=None,\n                       target_source_path=None,\n                       header_include_path=None):\n    \"\"\"Produces amalgamated source.\n       Parameters:\n           source_top_dir: top-directory\n           target_source_path: output .cpp path\n           header_include_path: generated header path relative to target_source_path.\n    \"\"\"\n    print(\"Amalgamating header...\")\n    header = AmalgamationFile(source_top_dir)\n    header.add_text(\"/// Json-cpp amalgamated header (https://github.com/open-source-parsers/jsoncpp/).\")\n    header.add_text('/// It is intended to be used with #include \"%s\"' % header_include_path)\n    header.add_file(\"LICENSE\", wrap_in_comment=True)\n    header.add_text(\"#ifndef JSON_AMALGAMATED_H_INCLUDED\")\n    header.add_text(\"# define JSON_AMALGAMATED_H_INCLUDED\")\n    header.add_text(\"/// If defined, indicates that the source file is amalgamated\")\n    header.add_text(\"/// to prevent private header inclusion.\")\n    header.add_text(\"#define JSON_IS_AMALGAMATION\")\n    header.add_file(os.path.join(INCLUDE_PATH, \"version.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"allocator.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"config.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"forwards.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"json_features.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"value.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"reader.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"writer.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"assertions.h\"))\n    header.add_text(\"#endif //ifndef JSON_AMALGAMATED_H_INCLUDED\")\n\n    target_header_path = os.path.join(os.path.dirname(target_source_path), header_include_path)\n    print(\"Writing amalgamated header to %r\" % target_header_path)\n    header.write_to(target_header_path)\n\n    base, ext = os.path.splitext(header_include_path)\n    forward_header_include_path = base + \"-forwards\" + ext\n    print(\"Amalgamating forward header...\")\n    header = AmalgamationFile(source_top_dir)\n    header.add_text(\"/// Json-cpp amalgamated forward header (https://github.com/open-source-parsers/jsoncpp/).\")\n    header.add_text('/// It is intended to be used with #include \"%s\"' % forward_header_include_path)\n    header.add_text(\"/// This header provides forward declaration for all JsonCpp types.\")\n    header.add_file(\"LICENSE\", wrap_in_comment=True)\n    header.add_text(\"#ifndef JSON_FORWARD_AMALGAMATED_H_INCLUDED\")\n    header.add_text(\"# define JSON_FORWARD_AMALGAMATED_H_INCLUDED\")\n    header.add_text(\"/// If defined, indicates that the source file is amalgamated\")\n    header.add_text(\"/// to prevent private header inclusion.\")\n    header.add_text(\"#define JSON_IS_AMALGAMATION\")\n    header.add_file(os.path.join(INCLUDE_PATH, \"version.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"allocator.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"config.h\"))\n    header.add_file(os.path.join(INCLUDE_PATH, \"forwards.h\"))\n    header.add_text(\"#endif //ifndef JSON_FORWARD_AMALGAMATED_H_INCLUDED\")\n\n    target_forward_header_path = os.path.join(os.path.dirname(target_source_path),\n                                               forward_header_include_path)\n    print(\"Writing amalgamated forward header to %r\" % target_forward_header_path)\n    header.write_to(target_forward_header_path)\n\n    print(\"Amalgamating source...\")\n    source = AmalgamationFile(source_top_dir)\n    source.add_text(\"/// Json-cpp amalgamated source (https://github.com/open-source-parsers/jsoncpp/).\")\n    source.add_text('/// It is intended to be used with #include \"%s\"' % header_include_path)\n    source.add_file(\"LICENSE\", wrap_in_comment=True)\n    source.add_text(\"\")\n    source.add_text('#include \"%s\"' % header_include_path)\n    source.add_text(\"\"\"\n#ifndef JSON_IS_AMALGAMATION\n#error \"Compile with -I PATH_TO_JSON_DIRECTORY\"\n#endif\n\"\"\")\n    source.add_text(\"\")\n    source.add_file(os.path.join(SRC_PATH, \"json_tool.h\"))\n    source.add_file(os.path.join(SRC_PATH, \"json_reader.cpp\"))\n    source.add_file(os.path.join(SRC_PATH, \"json_valueiterator.inl\"))\n    source.add_file(os.path.join(SRC_PATH, \"json_value.cpp\"))\n    source.add_file(os.path.join(SRC_PATH, \"json_writer.cpp\"))\n\n    print(\"Writing amalgamated source to %r\" % target_source_path)\n    source.write_to(target_source_path)\n\ndef main():\n    usage = \"\"\"%prog [options]\nGenerate a single amalgamated source and header file from the sources.\n\"\"\"\n    from optparse import OptionParser\n    parser = OptionParser(usage=usage)\n    parser.allow_interspersed_args = False\n    parser.add_option(\"-s\", \"--source\", dest=\"target_source_path\", action=\"store\", default=\"dist/jsoncpp.cpp\",\n        help=\"\"\"Output .cpp source path. [Default: %default]\"\"\")\n    parser.add_option(\"-i\", \"--include\", dest=\"header_include_path\", action=\"store\", default=\"json/json.h\",\n        help=\"\"\"Header include path. Used to include the header from the amalgamated source file. [Default: %default]\"\"\")\n    parser.add_option(\"-t\", \"--top-dir\", dest=\"top_dir\", action=\"store\", default=os.getcwd(),\n        help=\"\"\"Source top-directory. [Default: %default]\"\"\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n\n    msg = amalgamate_source(source_top_dir=options.top_dir,\n                             target_source_path=options.target_source_path,\n                             header_include_path=options.header_include_path)\n    if msg:\n        sys.stderr.write(msg + \"\\n\")\n        sys.exit(1)\n    else:\n        print(\"Source successfully amalgamated\")\n\nif __name__ == \"__main__\":\n    main()\n"
  },
  {
    "path": "appveyor.yml",
    "content": "clone_folder: c:\\projects\\jsoncpp\n\nenvironment:\n\n  matrix:\n    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015\n      CMAKE_GENERATOR: Visual Studio 14 2015\n    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015\n      CMAKE_GENERATOR: Visual Studio 14 2015 Win64\n    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017\n      CMAKE_GENERATOR: Visual Studio 15 2017\n    - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017\n      CMAKE_GENERATOR: Visual Studio 15 2017 Win64\n\nbuild_script:\n  - cmake --version\n  # The build script starts in root.\n  - set JSONCPP_FOLDER=%cd%\n  - set JSONCPP_BUILD_FOLDER=%JSONCPP_FOLDER%\\build\\release\n  - mkdir -p %JSONCPP_BUILD_FOLDER%\n  - cd %JSONCPP_BUILD_FOLDER%\n  - cmake -G \"%CMAKE_GENERATOR%\" -DCMAKE_INSTALL_PREFIX:PATH=%CD:\\=/%/install -DBUILD_SHARED_LIBS:BOOL=ON %JSONCPP_FOLDER%\n  # Use ctest to make a dashboard build:\n  # - ctest -D Experimental(Start|Update|Configure|Build|Test|Coverage|MemCheck|Submit)\n  # NOTE: Testing on windows is not yet finished:\n  # - ctest -C Release -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit\n  - ctest -C Release -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalSubmit\n  # Final step is to verify that installation succeeds\n  - cmake --build . --config Release --target install\n\ndeploy:\n    provider: GitHub\n    auth_token:\n        secure: K2Tp1q8pIZ7rs0Ot24ZMWuwr12Ev6Tc6QkhMjGQxoQG3ng1pXtgPasiJ45IDXGdg\n    on:\n        branch: master\n        appveyor_repo_tag: true\n"
  },
  {
    "path": "cmake/JoinPaths.cmake",
    "content": "# This module provides a function for joining paths\n# known from most languages\n#\n# SPDX-License-Identifier: (MIT OR CC0-1.0)\n# Copyright 2020 Jan Tojnar\n# https://github.com/jtojnar/cmake-snips\n#\n# Modelled after Python’s os.path.join\n# https://docs.python.org/3.7/library/os.path.html#os.path.join\n# Windows not supported\nfunction(join_paths joined_path first_path_segment)\n    set(temp_path \"${first_path_segment}\")\n    foreach(current_segment IN LISTS ARGN)\n        if(NOT (\"${current_segment}\" STREQUAL \"\"))\n            if(IS_ABSOLUTE \"${current_segment}\")\n                set(temp_path \"${current_segment}\")\n            else()\n                set(temp_path \"${temp_path}/${current_segment}\")\n            endif()\n        endif()\n    endforeach()\n    set(${joined_path} \"${temp_path}\" PARENT_SCOPE)\nendfunction()\n"
  },
  {
    "path": "dev.makefile",
    "content": "# This is only for jsoncpp developers/contributors.\n# We use this to sign releases, generate documentation, etc.\nVER?=$(shell cat version)\n\ndefault:\n\t@echo \"VER=${VER}\"\nupdate-version:\n\tperl get_version.pl meson.build >| version\nsign: jsoncpp-${VER}.tar.gz\n\tgpg --armor --detach-sign $<\n\tgpg --verify $<.asc\n\t# Then upload .asc to the release.\njsoncpp-%.tar.gz:\n\tcurl https://github.com/open-source-parsers/jsoncpp/archive/$*.tar.gz -o $@\ndox:\n\tpython doxybuild.py --doxygen=$$(which doxygen) --in doc/web_doxyfile.in\n\trsync -va -c --delete dist/doxygen/jsoncpp-api-html-${VER}/ ../jsoncpp-docs/doxygen/\n\t# Then 'git add -A' and 'git push' in jsoncpp-docs.\nbuild:\n\tmkdir -p build/debug\n\tcd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=ON -G \"Unix Makefiles\" ../..\n\tmake -C build/debug\n\n# Currently, this depends on include/json/version.h generated\n# by cmake.\ntest-amalgamate:\n\tpython2.7 amalgamate.py\n\tpython3.4 amalgamate.py\n\tcd dist; gcc -I. -c jsoncpp.cpp\n\nvalgrind:\n\tvalgrind --error-exitcode=42 --leak-check=full ./build/debug/src/test_lib_json/jsoncpp_test\n\nclean:\n\t\\rm -rf *.gz *.asc dist/\n\n.PHONY: build\n"
  },
  {
    "path": "devtools/__init__.py",
    "content": "# Copyright 2010 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n# module\n"
  },
  {
    "path": "devtools/agent_vmw7.json",
    "content": "{\r\n    \"cmake_variants\" : [\r\n        {\"name\": \"generator\",\r\n         \"generators\": [\r\n            {\"generator\": [\r\n                \"Visual Studio 7 .NET 2003\",\r\n                \"Visual Studio 9 2008\",\r\n                \"Visual Studio 9 2008 Win64\",\r\n                \"Visual Studio 10\",\r\n                \"Visual Studio 10 Win64\",\r\n                \"Visual Studio 11\",\r\n                \"Visual Studio 11 Win64\"\r\n                ]\r\n            },\r\n            {\"generator\": [\"MinGW Makefiles\"],\r\n             \"env_prepend\": [{\"path\": \"c:/wut/prg/MinGW/bin\"}]\r\n            }\r\n         ]\r\n        },\r\n        {\"name\": \"shared_dll\",\r\n         \"variables\": [\r\n            [\"BUILD_SHARED_LIBS=true\"],\r\n            [\"BUILD_SHARED_LIBS=false\"]\r\n          ]\r\n        },\r\n        {\"name\": \"build_type\",\r\n         \"build_types\": [\r\n            \"debug\",\r\n            \"release\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n"
  },
  {
    "path": "devtools/agent_vmxp.json",
    "content": "{\r\n    \"cmake_variants\" : [\r\n        {\"name\": \"generator\",\r\n         \"generators\": [\r\n            {\"generator\": [\r\n                \"Visual Studio 6\",\r\n                \"Visual Studio 7\",\r\n                \"Visual Studio 8 2005\"\r\n                ]\r\n            }\r\n         ]\r\n        },\r\n        {\"name\": \"shared_dll\",\r\n         \"variables\": [\r\n            [\"BUILD_SHARED_LIBS=true\"],\r\n            [\"BUILD_SHARED_LIBS=false\"]\r\n          ]\r\n        },\r\n        {\"name\": \"build_type\",\r\n         \"build_types\": [\r\n            \"debug\",\r\n            \"release\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n"
  },
  {
    "path": "devtools/antglob.py",
    "content": "#!/usr/bin/env python\n# encoding: utf-8\n# Copyright 2009 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom __future__ import print_function\nfrom dircache import listdir\nimport re\nimport fnmatch\nimport os.path\n\n\n# These fnmatch expressions are used by default to prune the directory tree\n# while doing the recursive traversal in the glob_impl method of glob function.\nprune_dirs = '.git .bzr .hg .svn _MTN _darcs CVS SCCS '\n\n# These fnmatch expressions are used by default to exclude files and dirs\n# while doing the recursive traversal in the glob_impl method of glob function.\n##exclude_pats = prune_pats + '*~ #*# .#* %*% ._* .gitignore .cvsignore vssver.scc .DS_Store'.split()\n\n# These ant_glob expressions are used by default to exclude files and dirs and also prune the directory tree\n# while doing the recursive traversal in the glob_impl method of glob function.\ndefault_excludes = '''\n**/*~\n**/#*#\n**/.#*\n**/%*%\n**/._*\n**/CVS\n**/CVS/**\n**/.cvsignore\n**/SCCS\n**/SCCS/**\n**/vssver.scc\n**/.svn\n**/.svn/**\n**/.git\n**/.git/**\n**/.gitignore\n**/.bzr\n**/.bzr/**\n**/.hg\n**/.hg/**\n**/_MTN\n**/_MTN/**\n**/_darcs\n**/_darcs/**\n**/.DS_Store '''\n\nDIR = 1\nFILE = 2\nDIR_LINK = 4\nFILE_LINK = 8\nLINKS = DIR_LINK | FILE_LINK\nALL_NO_LINK = DIR | FILE\nALL = DIR | FILE | LINKS\n\n_ANT_RE = re.compile(r'(/\\*\\*/)|(\\*\\*/)|(/\\*\\*)|(\\*)|(/)|([^\\*/]*)')\n\ndef ant_pattern_to_re(ant_pattern):\n    \"\"\"Generates a regular expression from the ant pattern.\n    Matching convention:\n    **/a: match 'a', 'dir/a', 'dir1/dir2/a'\n    a/**/b: match 'a/b', 'a/c/b', 'a/d/c/b'\n    *.py: match 'script.py' but not 'a/script.py'\n    \"\"\"\n    rex = ['^']\n    next_pos = 0\n    sep_rex = r'(?:/|%s)' % re.escape(os.path.sep)\n##    print 'Converting', ant_pattern\n    for match in _ANT_RE.finditer(ant_pattern):\n##        print 'Matched', match.group()\n##        print match.start(0), next_pos\n        if match.start(0) != next_pos:\n            raise ValueError(\"Invalid ant pattern\")\n        if match.group(1): # /**/\n            rex.append(sep_rex + '(?:.*%s)?' % sep_rex)\n        elif match.group(2): # **/\n            rex.append('(?:.*%s)?' % sep_rex)\n        elif match.group(3): # /**\n            rex.append(sep_rex + '.*')\n        elif match.group(4): # *\n            rex.append('[^/%s]*' % re.escape(os.path.sep))\n        elif match.group(5): # /\n            rex.append(sep_rex)\n        else: # somepath\n            rex.append(re.escape(match.group(6)))\n        next_pos = match.end()\n    rex.append('$')\n    return re.compile(''.join(rex))\n\ndef _as_list(l):\n    if isinstance(l, basestring):\n        return l.split()\n    return l\n\ndef glob(dir_path,\n         includes = '**/*',\n         excludes = default_excludes,\n         entry_type = FILE,\n         prune_dirs = prune_dirs,\n         max_depth = 25):\n    include_filter = [ant_pattern_to_re(p) for p in _as_list(includes)]\n    exclude_filter = [ant_pattern_to_re(p) for p in _as_list(excludes)]\n    prune_dirs = [p.replace('/',os.path.sep) for p in _as_list(prune_dirs)]\n    dir_path = dir_path.replace('/',os.path.sep)\n    entry_type_filter = entry_type\n\n    def is_pruned_dir(dir_name):\n        for pattern in prune_dirs:\n            if fnmatch.fnmatch(dir_name, pattern):\n                return True\n        return False\n\n    def apply_filter(full_path, filter_rexs):\n        \"\"\"Return True if at least one of the filter regular expression match full_path.\"\"\"\n        for rex in filter_rexs:\n            if rex.match(full_path):\n                return True\n        return False\n\n    def glob_impl(root_dir_path):\n        child_dirs = [root_dir_path]\n        while child_dirs:\n            dir_path = child_dirs.pop()\n            for entry in listdir(dir_path):\n                full_path = os.path.join(dir_path, entry)\n##                print 'Testing:', full_path,\n                is_dir = os.path.isdir(full_path)\n                if is_dir and not is_pruned_dir(entry): # explore child directory ?\n##                    print '===> marked for recursion',\n                    child_dirs.append(full_path)\n                included = apply_filter(full_path, include_filter)\n                rejected = apply_filter(full_path, exclude_filter)\n                if not included or rejected: # do not include entry ?\n##                    print '=> not included or rejected'\n                    continue\n                link = os.path.islink(full_path)\n                is_file = os.path.isfile(full_path)\n                if not is_file and not is_dir:\n##                    print '=> unknown entry type'\n                    continue\n                if link:\n                    entry_type = is_file and FILE_LINK or DIR_LINK\n                else:\n                    entry_type = is_file and FILE or DIR\n##                print '=> type: %d' % entry_type,\n                if (entry_type & entry_type_filter) != 0:\n##                    print ' => KEEP'\n                    yield os.path.join(dir_path, entry)\n##                else:\n##                    print ' => TYPE REJECTED'\n    return list(glob_impl(dir_path))\n\n\nif __name__ == \"__main__\":\n    import unittest\n\n    class AntPatternToRETest(unittest.TestCase):\n##        def test_conversion(self):\n##            self.assertEqual('^somepath$', ant_pattern_to_re('somepath').pattern)\n\n        def test_matching(self):\n            test_cases = [ ('path',\n                             ['path'],\n                             ['somepath', 'pathsuffix', '/path', '/path']),\n                           ('*.py',\n                             ['source.py', 'source.ext.py', '.py'],\n                             ['path/source.py', '/.py', 'dir.py/z', 'z.pyc', 'z.c']),\n                           ('**/path',\n                             ['path', '/path', '/a/path', 'c:/a/path', '/a/b/path', '//a/path', '/a/path/b/path'],\n                             ['path/', 'a/path/b', 'dir.py/z', 'somepath', 'pathsuffix', 'a/somepath']),\n                           ('path/**',\n                             ['path/a', 'path/path/a', 'path//'],\n                             ['path', 'somepath/a', 'a/path', 'a/path/a', 'pathsuffix/a']),\n                           ('/**/path',\n                             ['/path', '/a/path', '/a/b/path/path', '/path/path'],\n                             ['path', 'path/', 'a/path', '/pathsuffix', '/somepath']),\n                           ('a/b',\n                             ['a/b'],\n                             ['somea/b', 'a/bsuffix', 'a/b/c']),\n                           ('**/*.py',\n                             ['script.py', 'src/script.py', 'a/b/script.py', '/a/b/script.py'],\n                             ['script.pyc', 'script.pyo', 'a.py/b']),\n                           ('src/**/*.py',\n                             ['src/a.py', 'src/dir/a.py'],\n                             ['a/src/a.py', '/src/a.py']),\n                           ]\n            for ant_pattern, accepted_matches, rejected_matches in list(test_cases):\n                def local_path(paths):\n                    return [ p.replace('/',os.path.sep) for p in paths ]\n                test_cases.append((ant_pattern, local_path(accepted_matches), local_path(rejected_matches)))\n            for ant_pattern, accepted_matches, rejected_matches in test_cases:\n                rex = ant_pattern_to_re(ant_pattern)\n                print('ant_pattern:', ant_pattern, ' => ', rex.pattern)\n                for accepted_match in accepted_matches:\n                    print('Accepted?:', accepted_match)\n                    self.assertTrue(rex.match(accepted_match) is not None)\n                for rejected_match in rejected_matches:\n                    print('Rejected?:', rejected_match)\n                    self.assertTrue(rex.match(rejected_match) is None)\n\n    unittest.main()\n"
  },
  {
    "path": "devtools/batchbuild.py",
    "content": "from __future__ import print_function\nimport collections\nimport itertools\nimport json\nimport os\nimport os.path\nimport re\nimport shutil\nimport string\nimport subprocess\nimport sys\nimport html\n\nclass BuildDesc:\n    def __init__(self, prepend_envs=None, variables=None, build_type=None, generator=None):\n        self.prepend_envs = prepend_envs or [] # [ { \"var\": \"value\" } ]\n        self.variables = variables or []\n        self.build_type = build_type\n        self.generator = generator\n\n    def merged_with(self, build_desc):\n        \"\"\"Returns a new BuildDesc by merging field content.\n           Prefer build_desc fields to self fields for single valued field.\n        \"\"\"\n        return BuildDesc(self.prepend_envs + build_desc.prepend_envs,\n                          self.variables + build_desc.variables,\n                          build_desc.build_type or self.build_type,\n                          build_desc.generator or self.generator)\n\n    def env(self):\n        environ = os.environ.copy()\n        for values_by_name in self.prepend_envs:\n            for var, value in list(values_by_name.items()):\n                var = var.upper()\n                if type(value) is unicode:\n                    value = value.encode(sys.getdefaultencoding())\n                if var in environ:\n                    environ[var] = value + os.pathsep + environ[var]\n                else:\n                    environ[var] = value\n        return environ\n\n    def cmake_args(self):\n        args = [\"-D%s\" % var for var in self.variables]\n        # skip build type for Visual Studio solution as it cause warning\n        if self.build_type and 'Visual' not in self.generator:\n            args.append(\"-DCMAKE_BUILD_TYPE=%s\" % self.build_type)\n        if self.generator:\n            args.extend(['-G', self.generator])\n        return args\n\n    def __repr__(self):\n        return \"BuildDesc(%s, build_type=%s)\" %  (\" \".join(self.cmake_args()), self.build_type)\n\nclass BuildData:\n    def __init__(self, desc, work_dir, source_dir):\n        self.desc = desc\n        self.work_dir = work_dir\n        self.source_dir = source_dir\n        self.cmake_log_path = os.path.join(work_dir, 'batchbuild_cmake.log')\n        self.build_log_path = os.path.join(work_dir, 'batchbuild_build.log')\n        self.cmake_succeeded = False\n        self.build_succeeded = False\n\n    def execute_build(self):\n        print('Build %s' % self.desc)\n        self._make_new_work_dir()\n        self.cmake_succeeded = self._generate_makefiles()\n        if self.cmake_succeeded:\n            self.build_succeeded = self._build_using_makefiles()\n        return self.build_succeeded\n\n    def _generate_makefiles(self):\n        print('  Generating makefiles: ', end=' ')\n        cmd = ['cmake'] + self.desc.cmake_args() + [os.path.abspath(self.source_dir)]\n        succeeded = self._execute_build_subprocess(cmd, self.desc.env(), self.cmake_log_path)\n        print('done' if succeeded else 'FAILED')\n        return succeeded\n\n    def _build_using_makefiles(self):\n        print('  Building:', end=' ')\n        cmd = ['cmake', '--build', self.work_dir]\n        if self.desc.build_type:\n            cmd += ['--config', self.desc.build_type]\n        succeeded = self._execute_build_subprocess(cmd, self.desc.env(), self.build_log_path)\n        print('done' if succeeded else 'FAILED')\n        return succeeded\n\n    def _execute_build_subprocess(self, cmd, env, log_path):\n        process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=self.work_dir,\n                                    env=env)\n        stdout, _ = process.communicate()\n        succeeded = (process.returncode == 0)\n        with open(log_path, 'wb') as flog:\n            log = ' '.join(cmd) + '\\n' + stdout + '\\nExit code: %r\\n' % process.returncode\n            flog.write(fix_eol(log))\n        return succeeded\n\n    def _make_new_work_dir(self):\n        if os.path.isdir(self.work_dir):\n            print('  Removing work directory', self.work_dir)\n            shutil.rmtree(self.work_dir, ignore_errors=True)\n        if not os.path.isdir(self.work_dir):\n            os.makedirs(self.work_dir)\n\ndef fix_eol(stdout):\n    \"\"\"Fixes wrong EOL produced by cmake --build on Windows (\\r\\r\\n instead of \\r\\n).\n    \"\"\"\n    return re.sub('\\r*\\n', os.linesep, stdout)\n\ndef load_build_variants_from_config(config_path):\n    with open(config_path, 'rb') as fconfig:\n        data = json.load(fconfig)\n    variants = data[ 'cmake_variants' ]\n    build_descs_by_axis = collections.defaultdict(list)\n    for axis in variants:\n        axis_name = axis[\"name\"]\n        build_descs = []\n        if \"generators\" in axis:\n            for generator_data in axis[\"generators\"]:\n                for generator in generator_data[\"generator\"]:\n                    build_desc = BuildDesc(generator=generator,\n                                            prepend_envs=generator_data.get(\"env_prepend\"))\n                    build_descs.append(build_desc)\n        elif \"variables\" in axis:\n            for variables in axis[\"variables\"]:\n                build_desc = BuildDesc(variables=variables)\n                build_descs.append(build_desc)\n        elif \"build_types\" in axis:\n            for build_type in axis[\"build_types\"]:\n                build_desc = BuildDesc(build_type=build_type)\n                build_descs.append(build_desc)\n        build_descs_by_axis[axis_name].extend(build_descs)\n    return build_descs_by_axis\n\ndef generate_build_variants(build_descs_by_axis):\n    \"\"\"Returns a list of BuildDesc generated for the partial BuildDesc for each axis.\"\"\"\n    axis_names = list(build_descs_by_axis.keys())\n    build_descs = []\n    for axis_name, axis_build_descs in list(build_descs_by_axis.items()):\n        if len(build_descs):\n            # for each existing build_desc and each axis build desc, create a new build_desc\n            new_build_descs = []\n            for prototype_build_desc, axis_build_desc in itertools.product(build_descs, axis_build_descs):\n                new_build_descs.append(prototype_build_desc.merged_with(axis_build_desc))\n            build_descs = new_build_descs\n        else:\n            build_descs = axis_build_descs\n    return build_descs\n\nHTML_TEMPLATE = string.Template('''<html>\n<head>\n    <title>$title</title>\n    <style type=\"text/css\">\n    td.failed {background-color:#f08080;}\n    td.ok {background-color:#c0eec0;}\n    </style>\n</head>\n<body>\n<table border=\"1\">\n<thead>\n    <tr>\n        <th>Variables</th>\n        $th_vars\n    </tr>\n    <tr>\n        <th>Build type</th>\n        $th_build_types\n    </tr>\n</thead>\n<tbody>\n$tr_builds\n</tbody>\n</table>\n</body></html>''')\n\ndef generate_html_report(html_report_path, builds):\n    report_dir = os.path.dirname(html_report_path)\n    # Vertical axis: generator\n    # Horizontal: variables, then build_type\n    builds_by_generator = collections.defaultdict(list)\n    variables = set()\n    build_types_by_variable = collections.defaultdict(set)\n    build_by_pos_key = {} # { (generator, var_key, build_type): build }\n    for build in builds:\n        builds_by_generator[build.desc.generator].append(build)\n        var_key = tuple(sorted(build.desc.variables))\n        variables.add(var_key)\n        build_types_by_variable[var_key].add(build.desc.build_type)\n        pos_key = (build.desc.generator, var_key, build.desc.build_type)\n        build_by_pos_key[pos_key] = build\n    variables = sorted(variables)\n    th_vars = []\n    th_build_types = []\n    for variable in variables:\n        build_types = sorted(build_types_by_variable[variable])\n        nb_build_type = len(build_types_by_variable[variable])\n        th_vars.append('<th colspan=\"%d\">%s</th>' % (nb_build_type, html.escape(' '.join(variable))))\n        for build_type in build_types:\n            th_build_types.append('<th>%s</th>' % html.escape(build_type))\n    tr_builds = []\n    for generator in sorted(builds_by_generator):\n        tds = [ '<td>%s</td>\\n' % html.escape(generator) ]\n        for variable in variables:\n            build_types = sorted(build_types_by_variable[variable])\n            for build_type in build_types:\n                pos_key = (generator, variable, build_type)\n                build = build_by_pos_key.get(pos_key)\n                if build:\n                    cmake_status = 'ok' if build.cmake_succeeded else 'FAILED'\n                    build_status = 'ok' if build.build_succeeded else 'FAILED'\n                    cmake_log_url = os.path.relpath(build.cmake_log_path, report_dir)\n                    build_log_url = os.path.relpath(build.build_log_path, report_dir)\n                    td = '<td class=\"%s\"><a href=\"%s\" class=\"%s\">CMake: %s</a>' % (                        build_status.lower(), cmake_log_url, cmake_status.lower(), cmake_status)\n                    if build.cmake_succeeded:\n                        td += '<br><a href=\"%s\" class=\"%s\">Build: %s</a>' % (                            build_log_url, build_status.lower(), build_status)\n                    td += '</td>'\n                else:\n                    td = '<td></td>'\n                tds.append(td)\n        tr_builds.append('<tr>%s</tr>' % '\\n'.join(tds))\n    html = HTML_TEMPLATE.substitute(        title='Batch build report',\n        th_vars=' '.join(th_vars),\n        th_build_types=' '.join(th_build_types),\n        tr_builds='\\n'.join(tr_builds))\n    with open(html_report_path, 'wt') as fhtml:\n        fhtml.write(html)\n    print('HTML report generated in:', html_report_path)\n\ndef main():\n    usage = r\"\"\"%prog WORK_DIR SOURCE_DIR CONFIG_JSON_PATH [CONFIG2_JSON_PATH...]\nBuild a given CMake based project located in SOURCE_DIR with multiple generators/options.dry_run\nas described in CONFIG_JSON_PATH building in WORK_DIR.\n\nExample of call:\npython devtools\\batchbuild.py e:\\buildbots\\jsoncpp\\build . devtools\\agent_vmw7.json\n\"\"\"\n    from optparse import OptionParser\n    parser = OptionParser(usage=usage)\n    parser.allow_interspersed_args = True\n#    parser.add_option('-v', '--verbose', dest=\"verbose\", action='store_true',\n#        help=\"\"\"Be verbose.\"\"\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n    if len(args) < 3:\n        parser.error(\"Missing one of WORK_DIR SOURCE_DIR CONFIG_JSON_PATH.\")\n    work_dir = args[0]\n    source_dir = args[1].rstrip('/\\\\')\n    config_paths = args[2:]\n    for config_path in config_paths:\n        if not os.path.isfile(config_path):\n            parser.error(\"Can not read: %r\" % config_path)\n\n    # generate build variants\n    build_descs = []\n    for config_path in config_paths:\n        build_descs_by_axis = load_build_variants_from_config(config_path)\n        build_descs.extend(generate_build_variants(build_descs_by_axis))\n    print('Build variants (%d):' % len(build_descs))\n    # assign build directory for each variant\n    if not os.path.isdir(work_dir):\n        os.makedirs(work_dir)\n    builds = []\n    with open(os.path.join(work_dir, 'matrix-dir-map.txt'), 'wt') as fmatrixmap:\n        for index, build_desc in enumerate(build_descs):\n            build_desc_work_dir = os.path.join(work_dir, '%03d' % (index+1))\n            builds.append(BuildData(build_desc, build_desc_work_dir, source_dir))\n            fmatrixmap.write('%s: %s\\n' % (build_desc_work_dir, build_desc))\n    for build in builds:\n        build.execute_build()\n    html_report_path = os.path.join(work_dir, 'batchbuild-report.html')\n    generate_html_report(html_report_path, builds)\n    print('Done')\n\n\nif __name__ == '__main__':\n    main()\n\n"
  },
  {
    "path": "devtools/fixeol.py",
    "content": "# Copyright 2010 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom __future__ import print_function\nimport os.path\nimport sys\n\ndef fix_source_eol(path, is_dry_run = True, verbose = True, eol = '\\n'):\n    \"\"\"Makes sure that all sources have the specified eol sequence (default: unix).\"\"\"\n    if not os.path.isfile(path):\n        raise ValueError('Path \"%s\" is not a file' % path)\n    try:\n        f = open(path, 'rb')\n    except IOError as msg:\n        print(\"%s: I/O Error: %s\" % (file, str(msg)), file=sys.stderr)\n        return False\n    try:\n        raw_lines = f.readlines()\n    finally:\n        f.close()\n    fixed_lines = [line.rstrip('\\r\\n') + eol for line in raw_lines]\n    if raw_lines != fixed_lines:\n        print('%s =>' % path, end=' ')\n        if not is_dry_run:\n            f = open(path, \"wb\")\n            try:\n                f.writelines(fixed_lines)\n            finally:\n                f.close()\n        if verbose:\n            print(is_dry_run and ' NEED FIX' or ' FIXED')\n    return True\n##\n##\n##\n##def _do_fix(is_dry_run = True):\n##    from waftools import antglob\n##    python_sources = antglob.glob('.',\n##        includes = '**/*.py **/wscript **/wscript_build',\n##        excludes = antglob.default_excludes + './waf.py',\n##        prune_dirs = antglob.prune_dirs + 'waf-* ./build')\n##    for path in python_sources:\n##        _fix_python_source(path, is_dry_run)\n##\n##    cpp_sources = antglob.glob('.',\n##        includes = '**/*.cpp **/*.h **/*.inl',\n##        prune_dirs = antglob.prune_dirs + 'waf-* ./build')\n##    for path in cpp_sources:\n##        _fix_source_eol(path, is_dry_run)\n##\n##\n##def dry_fix(context):\n##    _do_fix(is_dry_run = True)\n##\n##def fix(context):\n##    _do_fix(is_dry_run = False)\n##\n##def shutdown():\n##    pass\n##\n##def check(context):\n##    # Unit tests are run when \"check\" target is used\n##    ut = UnitTest.unit_test()\n##    ut.change_to_testfile_dir = True\n##    ut.want_to_see_test_output = True\n##    ut.want_to_see_test_error = True\n##    ut.run()\n##    ut.print_results()\n"
  },
  {
    "path": "devtools/licenseupdater.py",
    "content": "\"\"\"Updates the license text in source file.\n\"\"\"\nfrom __future__ import print_function\n\n# An existing license is found if the file starts with the string below,\n# and ends with the first blank line.\nLICENSE_BEGIN = \"// Copyright \"\n\nBRIEF_LICENSE = LICENSE_BEGIN + \"\"\"2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n\"\"\".replace('\\r\\n','\\n')\n\ndef update_license(path, dry_run, show_diff):\n    \"\"\"Update the license statement in the specified file.\n    Parameters:\n      path: path of the C++ source file to update.\n      dry_run: if True, just print the path of the file that would be updated,\n               but don't change it.\n      show_diff: if True, print the path of the file that would be modified,\n                 as well as the change made to the file.\n    \"\"\"\n    with open(path, 'rt') as fin:\n        original_text = fin.read().replace('\\r\\n','\\n')\n        newline = fin.newlines and fin.newlines[0] or '\\n'\n    if not original_text.startswith(LICENSE_BEGIN):\n        # No existing license found => prepend it\n        new_text = BRIEF_LICENSE + original_text\n    else:\n        license_end_index = original_text.index('\\n\\n') # search first blank line\n        new_text = BRIEF_LICENSE + original_text[license_end_index+2:]\n    if original_text != new_text:\n        if not dry_run:\n            with open(path, 'wb') as fout:\n                fout.write(new_text.replace('\\n', newline))\n        print('Updated', path)\n        if show_diff:\n            import difflib\n            print('\\n'.join(difflib.unified_diff(original_text.split('\\n'),\n                                                   new_text.split('\\n'))))\n        return True\n    return False\n\ndef update_license_in_source_directories(source_dirs, dry_run, show_diff):\n    \"\"\"Updates license text in C++ source files found in directory source_dirs.\n    Parameters:\n      source_dirs: list of directory to scan for C++ sources. Directories are\n                   scanned recursively.\n      dry_run: if True, just print the path of the file that would be updated,\n               but don't change it.\n      show_diff: if True, print the path of the file that would be modified,\n                 as well as the change made to the file.\n    \"\"\"\n    from devtools import antglob\n    prune_dirs = antglob.prune_dirs + 'scons-local* ./build* ./libs ./dist'\n    for source_dir in source_dirs:\n        cpp_sources = antglob.glob(source_dir,\n            includes = '''**/*.h **/*.cpp **/*.inl''',\n            prune_dirs = prune_dirs)\n        for source in cpp_sources:\n            update_license(source, dry_run, show_diff)\n\ndef main():\n    usage = \"\"\"%prog DIR [DIR2...]\nUpdates license text in sources of the project in source files found\nin the directory specified on the command-line.\n\nExample of call:\npython devtools\\licenseupdater.py include src -n --diff\n=> Show change that would be made to the sources.\n\npython devtools\\licenseupdater.py include src\n=> Update license statement on all sources in directories include/ and src/.\n\"\"\"\n    from optparse import OptionParser\n    parser = OptionParser(usage=usage)\n    parser.allow_interspersed_args = False\n    parser.add_option('-n', '--dry-run', dest=\"dry_run\", action='store_true', default=False,\n        help=\"\"\"Only show what files are updated, do not update the files\"\"\")\n    parser.add_option('--diff', dest=\"show_diff\", action='store_true', default=False,\n        help=\"\"\"On update, show change made to the file.\"\"\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n    update_license_in_source_directories(args, options.dry_run, options.show_diff)\n    print('Done')\n\nif __name__ == '__main__':\n    import sys\n    import os.path\n    sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))\n    main()\n\n"
  },
  {
    "path": "devtools/tarball.py",
    "content": "# Copyright 2010 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom contextlib import closing\nimport os\nimport tarfile\n\nTARGZ_DEFAULT_COMPRESSION_LEVEL = 9\n\ndef make_tarball(tarball_path, sources, base_dir, prefix_dir=''):\n    \"\"\"Parameters:\n    tarball_path: output path of the .tar.gz file\n    sources: list of sources to include in the tarball, relative to the current directory\n    base_dir: if a source file is in a sub-directory of base_dir, then base_dir is stripped\n        from path in the tarball.\n    prefix_dir: all files stored in the tarball be sub-directory of prefix_dir. Set to ''\n        to make them child of root.\n    \"\"\"\n    base_dir = os.path.normpath(os.path.abspath(base_dir))\n    def archive_name(path):\n        \"\"\"Makes path relative to base_dir.\"\"\"\n        path = os.path.normpath(os.path.abspath(path))\n        common_path = os.path.commonprefix((base_dir, path))\n        archive_name = path[len(common_path):]\n        if os.path.isabs(archive_name):\n            archive_name = archive_name[1:]\n        return os.path.join(prefix_dir, archive_name)\n    def visit(tar, dirname, names):\n        for name in names:\n            path = os.path.join(dirname, name)\n            if os.path.isfile(path):\n                path_in_tar = archive_name(path)\n                tar.add(path, path_in_tar)\n    compression = TARGZ_DEFAULT_COMPRESSION_LEVEL\n    with closing(tarfile.TarFile.open(tarball_path, 'w:gz',\n            compresslevel=compression)) as tar:\n        for source in sources:\n            source_path = source\n            if os.path.isdir(source):\n                for dirpath, dirnames, filenames in os.walk(source_path):\n                    visit(tar, dirpath, filenames)\n            else:\n                path_in_tar = archive_name(source_path)\n                tar.add(source_path, path_in_tar)      # filename, arcname\n\ndef decompress(tarball_path, base_dir):\n    \"\"\"Decompress the gzipped tarball into directory base_dir.\n    \"\"\"\n    with closing(tarfile.TarFile.open(tarball_path)) as tar:\n        tar.extractall(base_dir)\n"
  },
  {
    "path": "doc/doxyfile.in",
    "content": "# Doxyfile 1.8.5\n\n# This file describes the settings to be used by the documentation system\n# doxygen (www.doxygen.org) for a project.\n#\n# All text after a double hash (##) is considered a comment and is placed in\n# front of the TAG it is preceding.\n#\n# All text after a single hash (#) is considered a comment and will be ignored.\n# The format is:\n# TAG = value [value, ...]\n# For lists, items can also be appended using:\n# TAG += value [value, ...]\n# Values that contain spaces should be placed between quotes (\\\" \\\").\n\n#---------------------------------------------------------------------------\n# Project related configuration options\n#---------------------------------------------------------------------------\n\n# This tag specifies the encoding used for all characters in the config file\n# that follow. The default is UTF-8 which is also the encoding used for all text\n# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv\n# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv\n# for the list of possible encodings.\n# The default value is: UTF-8.\n\nDOXYFILE_ENCODING      = UTF-8\n\n# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by\n# double-quotes, unless you are using Doxywizard) that should identify the\n# project for which the documentation is generated. This name is used in the\n# title of most generated pages and in a few other places.\n# The default value is: My Project.\n\nPROJECT_NAME           = \"JsonCpp\"\n\n# The PROJECT_NUMBER tag can be used to enter a project or revision number. This\n# could be handy for archiving the generated documentation or if some version\n# control system is used.\n\nPROJECT_NUMBER         = %JSONCPP_VERSION%\n\n# Using the PROJECT_BRIEF tag one can provide an optional one line description\n# for a project that appears at the top of each page and should give viewer a\n# quick idea about the purpose of the project. Keep the description short.\n\nPROJECT_BRIEF          =\n\n# With the PROJECT_LOGO tag one can specify an logo or icon that is included in\n# the documentation. The maximum height of the logo should not exceed 55 pixels\n# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo\n# to the output directory.\n\nPROJECT_LOGO           =\n\n# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path\n# into which the generated documentation will be written. If a relative path is\n# entered, it will be relative to the location where doxygen was started. If\n# left blank the current directory will be used.\n\nOUTPUT_DIRECTORY       = %DOC_TOPDIR%\n\n# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-\n# directories (in 2 levels) under the output directory of each output format and\n# will distribute the generated files over these directories. Enabling this\n# option can be useful when feeding doxygen a huge amount of source files, where\n# putting all generated files in the same directory would otherwise causes\n# performance problems for the file system.\n# The default value is: NO.\n\nCREATE_SUBDIRS         = NO\n\n# The OUTPUT_LANGUAGE tag is used to specify the language in which all\n# documentation generated by doxygen is written. Doxygen will use this\n# information to generate all constant output in the proper language.\n# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-\n# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,\n# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,\n# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,\n# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,\n# Turkish, Ukrainian and Vietnamese.\n# The default value is: English.\n\nOUTPUT_LANGUAGE        = English\n\n# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member\n# descriptions after the members that are listed in the file and class\n# documentation (similar to Javadoc). Set to NO to disable this.\n# The default value is: YES.\n\nBRIEF_MEMBER_DESC      = YES\n\n# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief\n# description of a member or function before the detailed description\n#\n# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the\n# brief descriptions will be completely suppressed.\n# The default value is: YES.\n\nREPEAT_BRIEF           = YES\n\n# This tag implements a quasi-intelligent brief description abbreviator that is\n# used to form the text in various listings. Each string in this list, if found\n# as the leading text of the brief description, will be stripped from the text\n# and the result, after processing the whole list, is used as the annotated\n# text. Otherwise, the brief description is used as-is. If left blank, the\n# following values are used ($name is automatically replaced with the name of\n# the entity):The $name class, The $name widget, The $name file, is, provides,\n# specifies, contains, represents, a, an and the.\n\nABBREVIATE_BRIEF       = \"The $name class\" \\\n                         \"The $name widget\" \\\n                         \"The $name file\" \\\n                         is \\\n                         provides \\\n                         specifies \\\n                         contains \\\n                         represents \\\n                         a \\\n                         an \\\n                         the\n\n# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then\n# doxygen will generate a detailed section even if there is only a brief\n# description.\n# The default value is: NO.\n\nALWAYS_DETAILED_SEC    = NO\n\n# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all\n# inherited members of a class in the documentation of that class as if those\n# members were ordinary class members. Constructors, destructors and assignment\n# operators of the base classes will not be shown.\n# The default value is: NO.\n\nINLINE_INHERITED_MEMB  = NO\n\n# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path\n# before files name in the file list and in the header files. If set to NO the\n# shortest path that makes the file name unique will be used\n# The default value is: YES.\n\nFULL_PATH_NAMES        = YES\n\n# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.\n# Stripping is only done if one of the specified strings matches the left-hand\n# part of the path. The tag can be used to show relative paths in the file list.\n# If left blank the directory from which doxygen is run is used as the path to\n# strip.\n#\n# Note that you can specify absolute paths here, but also relative paths, which\n# will be relative from the directory where doxygen is started.\n# This tag requires that the tag FULL_PATH_NAMES is set to YES.\n\nSTRIP_FROM_PATH        = %TOPDIR%\n\n# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the\n# path mentioned in the documentation of a class, which tells the reader which\n# header file to include in order to use a class. If left blank only the name of\n# the header file containing the class definition is used. Otherwise one should\n# specify the list of include paths that are normally passed to the compiler\n# using the -I flag.\n\nSTRIP_FROM_INC_PATH    = %TOPDIR%/include\n\n# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but\n# less readable) file names. This can be useful is your file systems doesn't\n# support long names like on DOS, Mac, or CD-ROM.\n# The default value is: NO.\n\nSHORT_NAMES            = NO\n\n# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the\n# first line (until the first dot) of a Javadoc-style comment as the brief\n# description. If set to NO, the Javadoc-style will behave just like regular Qt-\n# style comments (thus requiring an explicit @brief command for a brief\n# description.)\n# The default value is: NO.\n\nJAVADOC_AUTOBRIEF      = YES\n\n# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first\n# line (until the first dot) of a Qt-style comment as the brief description. If\n# set to NO, the Qt-style will behave just like regular Qt-style comments (thus\n# requiring an explicit \\brief command for a brief description.)\n# The default value is: NO.\n\nQT_AUTOBRIEF           = NO\n\n# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a\n# multi-line C++ special comment block (i.e. a block of //! or /// comments) as\n# a brief description. This used to be the default behavior. The new default is\n# to treat a multi-line C++ comment block as a detailed description. Set this\n# tag to YES if you prefer the old behavior instead.\n#\n# Note that setting this tag to YES also means that rational rose comments are\n# not recognized any more.\n# The default value is: NO.\n\nMULTILINE_CPP_IS_BRIEF = NO\n\n# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the\n# documentation from any documented member that it re-implements.\n# The default value is: YES.\n\nINHERIT_DOCS           = YES\n\n# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a\n# new page for each member. If set to NO, the documentation of a member will be\n# part of the file/class/namespace that contains it.\n# The default value is: NO.\n\nSEPARATE_MEMBER_PAGES  = NO\n\n# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen\n# uses this value to replace tabs by spaces in code fragments.\n# Minimum value: 1, maximum value: 16, default value: 4.\n\nTAB_SIZE               = 3\n\n# This tag can be used to specify a number of aliases that act as commands in\n# the documentation. An alias has the form:\n# name=value\n# For example adding\n# \"sideeffect=@par Side Effects:\\n\"\n# will allow you to put the command \\sideeffect (or @sideeffect) in the\n# documentation, which will result in a user-defined paragraph with heading\n# \"Side Effects:\". You can put \\n's in the value part of an alias to insert\n# newlines.\n\nALIASES                = \"testCaseSetup=\\link CppUT::TestCase::setUp() setUp()\\endlink\" \\\n                         \"testCaseRun=\\link CppUT::TestCase::run() run()\\endlink\" \\\n                         \"testCaseTearDown=\\link CppUT::TestCase::tearDown() tearDown()\\endlink\" \\\n                         \"json_ref=<a HREF='http://www.json.org/'>JSON (JavaScript Object Notation)</a>\"\n\n# This tag can be used to specify a number of word-keyword mappings (TCL only).\n# A mapping has the form \"name=value\". For example adding \"class=itcl::class\"\n# will allow you to use the command class in the itcl::class meaning.\n\nTCL_SUBST              =\n\n# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources\n# only. Doxygen will then generate output that is more tailored for C. For\n# instance, some of the names that are used will be different. The list of all\n# members will be omitted, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_FOR_C  = NO\n\n# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or\n# Python sources only. Doxygen will then generate output that is more tailored\n# for that language. For instance, namespaces will be presented as packages,\n# qualified scopes will look different, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_JAVA   = NO\n\n# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran\n# sources. Doxygen will then generate output that is tailored for Fortran.\n# The default value is: NO.\n\nOPTIMIZE_FOR_FORTRAN   = NO\n\n# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL\n# sources. Doxygen will then generate output that is tailored for VHDL.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_VHDL   = NO\n\n# Doxygen selects the parser to use depending on the extension of the files it\n# parses. With this tag you can assign which parser to use for a given\n# extension. Doxygen has a built-in mapping, but you can override or extend it\n# using this tag. The format is ext=language, where ext is a file extension, and\n# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,\n# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make\n# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C\n# (default is Fortran), use: inc=Fortran f=C.\n#\n# Note For files without extension you can use no_extension as a placeholder.\n#\n# Note that for custom extensions you also need to set FILE_PATTERNS otherwise\n# the files are not read by doxygen.\n\nEXTENSION_MAPPING      =\n\n# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments\n# according to the Markdown format, which allows for more readable\n# documentation. See http://daringfireball.net/projects/markdown/ for details.\n# The output of markdown processing is further processed by doxygen, so you can\n# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in\n# case of backward compatibilities issues.\n# The default value is: YES.\n\nMARKDOWN_SUPPORT       = YES\n\n# When enabled doxygen tries to link words that correspond to documented\n# classes, or namespaces to their corresponding documentation. Such a link can\n# be prevented in individual cases by by putting a % sign in front of the word\n# or globally by setting AUTOLINK_SUPPORT to NO.\n# The default value is: YES.\n\nAUTOLINK_SUPPORT       = YES\n\n# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want\n# to include (a tag file for) the STL sources as input, then you should set this\n# tag to YES in order to let doxygen match functions declarations and\n# definitions whose arguments contain STL classes (e.g. func(std::string);\n# versus func(std::string) {}). This also make the inheritance and collaboration\n# diagrams that involve STL classes more complete and accurate.\n# The default value is: NO.\n\nBUILTIN_STL_SUPPORT    = YES\n\n# If you use Microsoft's C++/CLI language, you should set this option to YES to\n# enable parsing support.\n# The default value is: NO.\n\nCPP_CLI_SUPPORT        = NO\n\n# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:\n# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen\n# will parse them like normal C++ but will assume all classes use public instead\n# of private inheritance when no explicit protection keyword is present.\n# The default value is: NO.\n\nSIP_SUPPORT            = NO\n\n# For Microsoft's IDL there are propget and propput attributes to indicate\n# getter and setter methods for a property. Setting this option to YES will make\n# doxygen to replace the get and set methods by a property in the documentation.\n# This will only work if the methods are indeed getting or setting a simple\n# type. If this is not the case, or you want to show the methods anyway, you\n# should set this option to NO.\n# The default value is: YES.\n\nIDL_PROPERTY_SUPPORT   = YES\n\n# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC\n# tag is set to YES, then doxygen will reuse the documentation of the first\n# member in the group (if any) for the other members of the group. By default\n# all members of a group must be documented explicitly.\n# The default value is: NO.\n\nDISTRIBUTE_GROUP_DOC   = NO\n\n# Set the SUBGROUPING tag to YES to allow class member groups of the same type\n# (for instance a group of public functions) to be put as a subgroup of that\n# type (e.g. under the Public Functions section). Set it to NO to prevent\n# subgrouping. Alternatively, this can be done per class using the\n# \\nosubgrouping command.\n# The default value is: YES.\n\nSUBGROUPING            = YES\n\n# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions\n# are shown inside the group in which they are included (e.g. using \\ingroup)\n# instead of on a separate page (for HTML and Man pages) or section (for LaTeX\n# and RTF).\n#\n# Note that this feature does not work in combination with\n# SEPARATE_MEMBER_PAGES.\n# The default value is: NO.\n\nINLINE_GROUPED_CLASSES = NO\n\n# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions\n# with only public data fields or simple typedef fields will be shown inline in\n# the documentation of the scope in which they are defined (i.e. file,\n# namespace, or group documentation), provided this scope is documented. If set\n# to NO, structs, classes, and unions are shown on a separate page (for HTML and\n# Man pages) or section (for LaTeX and RTF).\n# The default value is: NO.\n\nINLINE_SIMPLE_STRUCTS  = NO\n\n# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or\n# enum is documented as struct, union, or enum with the name of the typedef. So\n# typedef struct TypeS {} TypeT, will appear in the documentation as a struct\n# with name TypeT. When disabled the typedef will appear as a member of a file,\n# namespace, or class. And the struct will be named TypeS. This can typically be\n# useful for C code in case the coding convention dictates that all compound\n# types are typedef'ed and only the typedef is referenced, never the tag name.\n# The default value is: NO.\n\nTYPEDEF_HIDES_STRUCT   = NO\n\n# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This\n# cache is used to resolve symbols given their name and scope. Since this can be\n# an expensive process and often the same symbol appears multiple times in the\n# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small\n# doxygen will become slower. If the cache is too large, memory is wasted. The\n# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range\n# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536\n# symbols. At the end of a run doxygen will report the cache usage and suggest\n# the optimal cache size from a speed point of view.\n# Minimum value: 0, maximum value: 9, default value: 0.\n\nLOOKUP_CACHE_SIZE      = 0\n\n#---------------------------------------------------------------------------\n# Build related configuration options\n#---------------------------------------------------------------------------\n\n# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in\n# documentation are documented, even if no documentation was available. Private\n# class members and static file members will be hidden unless the\n# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.\n# Note: This will also disable the warnings about undocumented members that are\n# normally produced when WARNINGS is set to YES.\n# The default value is: NO.\n\nEXTRACT_ALL            = YES\n\n# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will\n# be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PRIVATE        = NO\n\n# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal\n# scope will be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PACKAGE        = NO\n\n# If the EXTRACT_STATIC tag is set to YES all static members of a file will be\n# included in the documentation.\n# The default value is: NO.\n\nEXTRACT_STATIC         = YES\n\n# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined\n# locally in source files will be included in the documentation. If set to NO\n# only classes defined in header files are included. Does not have any effect\n# for Java sources.\n# The default value is: YES.\n\nEXTRACT_LOCAL_CLASSES  = NO\n\n# This flag is only useful for Objective-C code. When set to YES local methods,\n# which are defined in the implementation section but not in the interface are\n# included in the documentation. If set to NO only methods in the interface are\n# included.\n# The default value is: NO.\n\nEXTRACT_LOCAL_METHODS  = NO\n\n# If this flag is set to YES, the members of anonymous namespaces will be\n# extracted and appear in the documentation as a namespace called\n# 'anonymous_namespace{file}', where file will be replaced with the base name of\n# the file that contains the anonymous namespace. By default anonymous namespace\n# are hidden.\n# The default value is: NO.\n\nEXTRACT_ANON_NSPACES   = NO\n\n# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all\n# undocumented members inside documented classes or files. If set to NO these\n# members will be included in the various overviews, but no documentation\n# section is generated. This option has no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_MEMBERS     = NO\n\n# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all\n# undocumented classes that are normally visible in the class hierarchy. If set\n# to NO these classes will be included in the various overviews. This option has\n# no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_CLASSES     = NO\n\n# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend\n# (class|struct|union) declarations. If set to NO these declarations will be\n# included in the documentation.\n# The default value is: NO.\n\nHIDE_FRIEND_COMPOUNDS  = NO\n\n# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any\n# documentation blocks found inside the body of a function. If set to NO these\n# blocks will be appended to the function's detailed documentation block.\n# The default value is: NO.\n\nHIDE_IN_BODY_DOCS      = NO\n\n# The INTERNAL_DOCS tag determines if documentation that is typed after a\n# \\internal command is included. If the tag is set to NO then the documentation\n# will be excluded. Set it to YES to include the internal documentation.\n# The default value is: NO.\n\nINTERNAL_DOCS          = YES\n\n# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file\n# names in lower-case letters. If set to YES upper-case letters are also\n# allowed. This is useful if you have classes or files whose names only differ\n# in case and if your file system supports case sensitive file names. Windows\n# and Mac users are advised to set this option to NO.\n# The default value is: system dependent.\n\nCASE_SENSE_NAMES       = NO\n\n# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with\n# their full class and namespace scopes in the documentation. If set to YES the\n# scope will be hidden.\n# The default value is: NO.\n\nHIDE_SCOPE_NAMES       = NO\n\n# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of\n# the files that are included by a file in the documentation of that file.\n# The default value is: YES.\n\nSHOW_INCLUDE_FILES     = YES\n\n# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include\n# files with double quotes in the documentation rather than with sharp brackets.\n# The default value is: NO.\n\nFORCE_LOCAL_INCLUDES   = NO\n\n# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the\n# documentation for inline members.\n# The default value is: YES.\n\nINLINE_INFO            = YES\n\n# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the\n# (detailed) documentation of file and class members alphabetically by member\n# name. If set to NO the members will appear in declaration order.\n# The default value is: YES.\n\nSORT_MEMBER_DOCS       = YES\n\n# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief\n# descriptions of file, namespace and class members alphabetically by member\n# name. If set to NO the members will appear in declaration order.\n# The default value is: NO.\n\nSORT_BRIEF_DOCS        = NO\n\n# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the\n# (brief and detailed) documentation of class members so that constructors and\n# destructors are listed first. If set to NO the constructors will appear in the\n# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.\n# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief\n# member documentation.\n# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting\n# detailed member documentation.\n# The default value is: NO.\n\nSORT_MEMBERS_CTORS_1ST = NO\n\n# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy\n# of group names into alphabetical order. If set to NO the group names will\n# appear in their defined order.\n# The default value is: NO.\n\nSORT_GROUP_NAMES       = NO\n\n# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by\n# fully-qualified names, including namespaces. If set to NO, the class list will\n# be sorted only by class name, not including the namespace part.\n# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.\n# Note: This option applies only to the class list, not to the alphabetical\n# list.\n# The default value is: NO.\n\nSORT_BY_SCOPE_NAME     = YES\n\n# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper\n# type resolution of all parameters of a function it will reject a match between\n# the prototype and the implementation of a member function even if there is\n# only one candidate or it is obvious which candidate to choose by doing a\n# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still\n# accept a match between prototype and implementation in such cases.\n# The default value is: NO.\n\nSTRICT_PROTO_MATCHING  = NO\n\n# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the\n# todo list. This list is created by putting \\todo commands in the\n# documentation.\n# The default value is: YES.\n\nGENERATE_TODOLIST      = YES\n\n# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the\n# test list. This list is created by putting \\test commands in the\n# documentation.\n# The default value is: YES.\n\nGENERATE_TESTLIST      = NO\n\n# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug\n# list. This list is created by putting \\bug commands in the documentation.\n# The default value is: YES.\n\nGENERATE_BUGLIST       = NO\n\n# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO)\n# the deprecated list. This list is created by putting \\deprecated commands in\n# the documentation.\n# The default value is: YES.\n\nGENERATE_DEPRECATEDLIST= YES\n\n# The ENABLED_SECTIONS tag can be used to enable conditional documentation\n# sections, marked by \\if <section_label> ... \\endif and \\cond <section_label>\n# ... \\endcond blocks.\n\nENABLED_SECTIONS       =\n\n# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the\n# initial value of a variable or macro / define can have for it to appear in the\n# documentation. If the initializer consists of more lines than specified here\n# it will be hidden. Use a value of 0 to hide initializers completely. The\n# appearance of the value of individual variables and macros / defines can be\n# controlled using \\showinitializer or \\hideinitializer command in the\n# documentation regardless of this setting.\n# Minimum value: 0, maximum value: 10000, default value: 30.\n\nMAX_INITIALIZER_LINES  = 30\n\n# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at\n# the bottom of the documentation of classes and structs. If set to YES the list\n# will mention the files that were used to generate the documentation.\n# The default value is: YES.\n\nSHOW_USED_FILES        = YES\n\n# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This\n# will remove the Files entry from the Quick Index and from the Folder Tree View\n# (if specified).\n# The default value is: YES.\n\nSHOW_FILES             = YES\n\n# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces\n# page. This will remove the Namespaces entry from the Quick Index and from the\n# Folder Tree View (if specified).\n# The default value is: YES.\n\nSHOW_NAMESPACES        = YES\n\n# The FILE_VERSION_FILTER tag can be used to specify a program or script that\n# doxygen should invoke to get the current version for each file (typically from\n# the version control system). Doxygen will invoke the program by executing (via\n# popen()) the command command input-file, where command is the value of the\n# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided\n# by doxygen. Whatever the program writes to standard output is used as the file\n# version. For an example see the documentation.\n\nFILE_VERSION_FILTER    =\n\n# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed\n# by doxygen. The layout file controls the global structure of the generated\n# output files in an output format independent way. To create the layout file\n# that represents doxygen's defaults, run doxygen with the -l option. You can\n# optionally specify a file name after the option, if omitted DoxygenLayout.xml\n# will be used as the name of the layout file.\n#\n# Note that if you run doxygen from a directory containing a file called\n# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE\n# tag is left empty.\n\nLAYOUT_FILE            =\n\n# The CITE_BIB_FILES tag can be used to specify one or more bib files containing\n# the reference definitions. This must be a list of .bib files. The .bib\n# extension is automatically appended if omitted. This requires the bibtex tool\n# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.\n# For LaTeX the style of the bibliography can be controlled using\n# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the\n# search path. Do not use file names with spaces, bibtex cannot handle them. See\n# also \\cite for info how to create references.\n\nCITE_BIB_FILES         =\n\n#---------------------------------------------------------------------------\n# Configuration options related to warning and progress messages\n#---------------------------------------------------------------------------\n\n# The QUIET tag can be used to turn on/off the messages that are generated to\n# standard output by doxygen. If QUIET is set to YES this implies that the\n# messages are off.\n# The default value is: NO.\n\nQUIET                  = NO\n\n# The WARNINGS tag can be used to turn on/off the warning messages that are\n# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES\n# this implies that the warnings are on.\n#\n# Tip: Turn warnings on while writing the documentation.\n# The default value is: YES.\n\nWARNINGS               = YES\n\n# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate\n# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag\n# will automatically be disabled.\n# The default value is: YES.\n\nWARN_IF_UNDOCUMENTED   = YES\n\n# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for\n# potential errors in the documentation, such as not documenting some parameters\n# in a documented function, or documenting parameters that don't exist or using\n# markup commands wrongly.\n# The default value is: YES.\n\nWARN_IF_DOC_ERROR      = YES\n\n# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that\n# are documented, but have no documentation for their parameters or return\n# value. If set to NO doxygen will only warn about wrong or incomplete parameter\n# documentation, but not about the absence of documentation.\n# The default value is: NO.\n\nWARN_NO_PARAMDOC       = NO\n\n# The WARN_FORMAT tag determines the format of the warning messages that doxygen\n# can produce. The string should contain the $file, $line, and $text tags, which\n# will be replaced by the file and line number from which the warning originated\n# and the warning text. Optionally the format may contain $version, which will\n# be replaced by the version of the file (if it could be obtained via\n# FILE_VERSION_FILTER)\n# The default value is: $file:$line: $text.\n\nWARN_FORMAT            = \"$file:$line: $text\"\n\n# The WARN_LOGFILE tag can be used to specify a file to which warning and error\n# messages should be written. If left blank the output is written to standard\n# error (stderr).\n\nWARN_LOGFILE           = %WARNING_LOG_PATH%\n\n#---------------------------------------------------------------------------\n# Configuration options related to the input files\n#---------------------------------------------------------------------------\n\n# The INPUT tag is used to specify the files and/or directories that contain\n# documented source files. You may enter file names like myfile.cpp or\n# directories like /usr/src/myproject. Separate the files or directories with\n# spaces.\n# Note: If this tag is empty the current directory is searched.\n\nINPUT                  = ../include \\\n                         ../src/lib_json \\\n                         .\n\n# This tag can be used to specify the character encoding of the source files\n# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses\n# libiconv (or the iconv built into libc) for the transcoding. See the libiconv\n# documentation (see: http://www.gnu.org/software/libiconv) for the list of\n# possible encodings.\n# The default value is: UTF-8.\n\nINPUT_ENCODING         = UTF-8\n\n# If the value of the INPUT tag contains directories, you can use the\n# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and\n# *.h) to filter out the source-files in the directories. If left blank the\n# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,\n# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,\n# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,\n# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,\n# *.qsf, *.as and *.js.\n\nFILE_PATTERNS          = *.h \\\n                         *.cpp \\\n                         *.inl \\\n                         *.dox\n\n# The RECURSIVE tag can be used to specify whether or not subdirectories should\n# be searched for input files as well.\n# The default value is: NO.\n\nRECURSIVE              = YES\n\n# The EXCLUDE tag can be used to specify files and/or directories that should be\n# excluded from the INPUT source files. This way you can easily exclude a\n# subdirectory from a directory tree whose root is specified with the INPUT tag.\n#\n# Note that relative paths are relative to the directory from which doxygen is\n# run.\n\nEXCLUDE                =\n\n# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or\n# directories that are symbolic links (a Unix file system feature) are excluded\n# from the input.\n# The default value is: NO.\n\nEXCLUDE_SYMLINKS       = NO\n\n# If the value of the INPUT tag contains directories, you can use the\n# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude\n# certain files from those directories.\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories for example use the pattern */test/*\n\nEXCLUDE_PATTERNS       =\n\n# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names\n# (namespaces, classes, functions, etc.) that should be excluded from the\n# output. The symbol name can be a fully qualified name, a word, or if the\n# wildcard * is used, a substring. Examples: ANamespace, AClass,\n# AClass::ANamespace, ANamespace::*Test\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories use the pattern */test/*\n\nEXCLUDE_SYMBOLS        =\n\n# The EXAMPLE_PATH tag can be used to specify one or more files or directories\n# that contain example code fragments that are included (see the \\include\n# command).\n\nEXAMPLE_PATH           = ..\n\n# If the value of the EXAMPLE_PATH tag contains directories, you can use the\n# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and\n# *.h) to filter out the source-files in the directories. If left blank all\n# files are included.\n\nEXAMPLE_PATTERNS       = *\n\n# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be\n# searched for input files to be used with the \\include or \\dontinclude commands\n# irrespective of the value of the RECURSIVE tag.\n# The default value is: NO.\n\nEXAMPLE_RECURSIVE      = NO\n\n# The IMAGE_PATH tag can be used to specify one or more files or directories\n# that contain images that are to be included in the documentation (see the\n# \\image command).\n\nIMAGE_PATH             =\n\n# The INPUT_FILTER tag can be used to specify a program that doxygen should\n# invoke to filter for each input file. Doxygen will invoke the filter program\n# by executing (via popen()) the command:\n#\n# <filter> <input-file>\n#\n# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the\n# name of an input file. Doxygen will then use the output that the filter\n# program writes to standard output. If FILTER_PATTERNS is specified, this tag\n# will be ignored.\n#\n# Note that the filter must not add or remove lines; it is applied before the\n# code is scanned, but not when the output code is generated. If lines are added\n# or removed, the anchors will not be placed correctly.\n\nINPUT_FILTER           =\n\n# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern\n# basis. Doxygen will compare the file name with each pattern and apply the\n# filter if there is a match. The filters are a list of the form: pattern=filter\n# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how\n# filters are used. If the FILTER_PATTERNS tag is empty or if none of the\n# patterns match the file name, INPUT_FILTER is applied.\n\nFILTER_PATTERNS        =\n\n# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using\n# INPUT_FILTER ) will also be used to filter the input files that are used for\n# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).\n# The default value is: NO.\n\nFILTER_SOURCE_FILES    = NO\n\n# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file\n# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and\n# it is also possible to disable source filtering for a specific pattern using\n# *.ext= (so without naming a filter).\n# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.\n\nFILTER_SOURCE_PATTERNS =\n\n# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that\n# is part of the input, its contents will be placed on the main page\n# (index.html). This can be useful if you have a project on for instance GitHub\n# and want to reuse the introduction page also for the doxygen output.\n\nUSE_MDFILE_AS_MAINPAGE =\n\n#---------------------------------------------------------------------------\n# Configuration options related to source browsing\n#---------------------------------------------------------------------------\n\n# If the SOURCE_BROWSER tag is set to YES then a list of source files will be\n# generated. Documented entities will be cross-referenced with these sources.\n#\n# Note: To get rid of all source code in the generated output, make sure that\n# also VERBATIM_HEADERS is set to NO.\n# The default value is: NO.\n\nSOURCE_BROWSER         = YES\n\n# Setting the INLINE_SOURCES tag to YES will include the body of functions,\n# classes and enums directly into the documentation.\n# The default value is: NO.\n\nINLINE_SOURCES         = NO\n\n# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any\n# special comment blocks from generated source code fragments. Normal C, C++ and\n# Fortran comments will always remain visible.\n# The default value is: YES.\n\nSTRIP_CODE_COMMENTS    = YES\n\n# If the REFERENCED_BY_RELATION tag is set to YES then for each documented\n# function all documented functions referencing it will be listed.\n# The default value is: NO.\n\nREFERENCED_BY_RELATION = YES\n\n# If the REFERENCES_RELATION tag is set to YES then for each documented function\n# all documented entities called/used by that function will be listed.\n# The default value is: NO.\n\nREFERENCES_RELATION    = YES\n\n# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set\n# to YES, then the hyperlinks from functions in REFERENCES_RELATION and\n# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will\n# link to the documentation.\n# The default value is: YES.\n\nREFERENCES_LINK_SOURCE = YES\n\n# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the\n# source code will show a tooltip with additional information such as prototype,\n# brief description and links to the definition and documentation. Since this\n# will make the HTML file larger and loading of large files a bit slower, you\n# can opt to disable this feature.\n# The default value is: YES.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nSOURCE_TOOLTIPS        = YES\n\n# If the USE_HTAGS tag is set to YES then the references to source code will\n# point to the HTML generated by the htags(1) tool instead of doxygen built-in\n# source browser. The htags tool is part of GNU's global source tagging system\n# (see http://www.gnu.org/software/global/global.html). You will need version\n# 4.8.6 or higher.\n#\n# To use it do the following:\n# - Install the latest version of global\n# - Enable SOURCE_BROWSER and USE_HTAGS in the config file\n# - Make sure the INPUT points to the root of the source tree\n# - Run doxygen as normal\n#\n# Doxygen will invoke htags (and that will in turn invoke gtags), so these\n# tools must be available from the command line (i.e. in the search path).\n#\n# The result: instead of the source browser generated by doxygen, the links to\n# source code will now point to the output of htags.\n# The default value is: NO.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nUSE_HTAGS              = NO\n\n# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a\n# verbatim copy of the header file for each class for which an include is\n# specified. Set to NO to disable this.\n# See also: Section \\class.\n# The default value is: YES.\n\nVERBATIM_HEADERS       = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to the alphabetical class index\n#---------------------------------------------------------------------------\n\n# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all\n# compounds will be generated. Enable this if the project contains a lot of\n# classes, structs, unions or interfaces.\n# The default value is: YES.\n\nALPHABETICAL_INDEX     = YES\nTOC_INCLUDE_HEADINGS = 2\n\n# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in\n# which the alphabetical index list will be split.\n# Minimum value: 1, maximum value: 20, default value: 5.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nCOLS_IN_ALPHA_INDEX    = 5\n\n# In case all classes in a project start with a common prefix, all classes will\n# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag\n# can be used to specify a prefix (or a list of prefixes) that should be ignored\n# while generating the index headers.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nIGNORE_PREFIX          =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the HTML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output\n# The default value is: YES.\n\nGENERATE_HTML          = YES\n\n# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_OUTPUT            = %HTML_OUTPUT%\n\n# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each\n# generated HTML page (for example: .htm, .php, .asp).\n# The default value is: .html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FILE_EXTENSION    = .html\n\n# The HTML_HEADER tag can be used to specify a user-defined HTML header file for\n# each generated HTML page. If the tag is left blank doxygen will generate a\n# standard header.\n#\n# To get valid HTML the header file that includes any scripts and style sheets\n# that doxygen needs, which is dependent on the configuration options used (e.g.\n# the setting GENERATE_TREEVIEW). It is highly recommended to start with a\n# default header using\n# doxygen -w html new_header.html new_footer.html new_stylesheet.css\n# YourConfigFile\n# and then modify the file new_header.html. See also section \"Doxygen usage\"\n# for information on how to generate the default header that doxygen normally\n# uses.\n# Note: The header is subject to change so you typically have to regenerate the\n# default header when upgrading to a newer version of doxygen. For a description\n# of the possible markers and block names see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_HEADER            = header.html\n\n# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each\n# generated HTML page. If the tag is left blank doxygen will generate a standard\n# footer. See HTML_HEADER for more information on how to generate a default\n# footer and what special commands can be used inside the footer. See also\n# section \"Doxygen usage\" for information on how to generate the default footer\n# that doxygen normally uses.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FOOTER            = footer.html\n\n# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style\n# sheet that is used by each HTML page. It can be used to fine-tune the look of\n# the HTML output. If left blank doxygen will generate a default style sheet.\n# See also section \"Doxygen usage\" for information on how to generate the style\n# sheet that doxygen normally uses.\n# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as\n# it is more robust and this tag (HTML_STYLESHEET) will in the future become\n# obsolete.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_STYLESHEET        =\n\n# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user-\n# defined cascading style sheet that is included after the standard style sheets\n# created by doxygen. Using this option one can overrule certain style aspects.\n# This is preferred over using HTML_STYLESHEET since it does not replace the\n# standard style sheet and is therefore more robust against future updates.\n# Doxygen will copy the style sheet file to the output directory. For an example\n# see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_STYLESHEET  =\n\n# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the HTML output directory. Note\n# that these files will be copied to the base HTML output directory. Use the\n# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these\n# files. In the HTML_STYLESHEET file, use the file name only. Also note that the\n# files will be copied as-is; there are no commands or markers available.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_FILES       =\n\n# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen\n# will adjust the colors in the stylesheet and background images according to\n# this color. Hue is specified as an angle on a colorwheel, see\n# http://en.wikipedia.org/wiki/Hue for more information. For instance the value\n# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300\n# purple, and 360 is red again.\n# Minimum value: 0, maximum value: 359, default value: 220.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_HUE    = 220\n\n# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors\n# in the HTML output. For a value of 0 the output will use grayscales only. A\n# value of 255 will produce the most vivid colors.\n# Minimum value: 0, maximum value: 255, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_SAT    = 100\n\n# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the\n# luminance component of the colors in the HTML output. Values below 100\n# gradually make the output lighter, whereas values above 100 make the output\n# darker. The value divided by 100 is the actual gamma applied, so 80 represents\n# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not\n# change the gamma.\n# Minimum value: 40, maximum value: 240, default value: 80.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_GAMMA  = 80\n\n# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML\n# page will contain the date and time when the page was generated. Setting this\n# to NO can help when comparing the output of multiple runs.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_TIMESTAMP         = YES\n\n# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML\n# documentation will contain sections that can be hidden and shown after the\n# page has loaded.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_DYNAMIC_SECTIONS  = YES\n\n# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries\n# shown in the various tree structured indices initially; the user can expand\n# and collapse entries dynamically later on. Doxygen will expand the tree to\n# such a level that at most the specified number of entries are visible (unless\n# a fully collapsed tree already exceeds this amount). So setting the number of\n# entries 1 will produce a full collapsed tree by default. 0 is a special value\n# representing an infinite number of entries and will result in a full expanded\n# tree by default.\n# Minimum value: 0, maximum value: 9999, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_INDEX_NUM_ENTRIES = 100\n\n# If the GENERATE_DOCSET tag is set to YES, additional index files will be\n# generated that can be used as input for Apple's Xcode 3 integrated development\n# environment (see: http://developer.apple.com/tools/xcode/), introduced with\n# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a\n# Makefile in the HTML output directory. Running make will produce the docset in\n# that directory and running make install will install the docset in\n# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at\n# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html\n# for more information.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_DOCSET        = NO\n\n# This tag determines the name of the docset feed. A documentation feed provides\n# an umbrella under which multiple documentation sets from a single provider\n# (such as a company or product suite) can be grouped.\n# The default value is: Doxygen generated docs.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_FEEDNAME        = \"Doxygen generated docs\"\n\n# This tag specifies a string that should uniquely identify the documentation\n# set bundle. This should be a reverse domain-name style string, e.g.\n# com.mycompany.MyDocSet. Doxygen will append .docset to the name.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_BUNDLE_ID       = org.doxygen.Project\n\n# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify\n# the documentation publisher. This should be a reverse domain-name style\n# string, e.g. com.mycompany.MyDocSet.documentation.\n# The default value is: org.doxygen.Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_ID    = org.doxygen.Publisher\n\n# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.\n# The default value is: Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_NAME  = Publisher\n\n# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three\n# additional HTML index files: index.hhp, index.hhc, and index.hhk. The\n# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop\n# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on\n# Windows.\n#\n# The HTML Help Workshop contains a compiler that can convert all HTML output\n# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML\n# files are now used as the Windows 98 help format, and will replace the old\n# Windows help format (.hlp) on all Windows platforms in the future. Compressed\n# HTML files also contain an index, a table of contents, and you can search for\n# words in the documentation. The HTML workshop also contains a viewer for\n# compressed HTML files.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_HTMLHELP      = %HTML_HELP%\n\n# The CHM_FILE tag can be used to specify the file name of the resulting .chm\n# file. You can add a path in front of the file if the result should not be\n# written to the html output directory.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_FILE               = jsoncpp-%JSONCPP_VERSION%.chm\n\n# The HHC_LOCATION tag can be used to specify the location (absolute path\n# including file name) of the HTML help compiler ( hhc.exe). If non-empty\n# doxygen will try to run the HTML help compiler on the generated index.hhp.\n# The file has to be specified with full path.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nHHC_LOCATION           = \"c:\\Program Files\\HTML Help Workshop\\hhc.exe\"\n\n# The GENERATE_CHI flag controls if a separate .chi index file is generated (\n# YES) or that it should be included in the master .chm file ( NO).\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nGENERATE_CHI           = YES\n\n# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc)\n# and project file content.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_INDEX_ENCODING     =\n\n# The BINARY_TOC flag controls whether a binary table of contents is generated (\n# YES) or a normal table of contents ( NO) in the .chm file.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nBINARY_TOC             = YES\n\n# The TOC_EXPAND flag can be set to YES to add extra items for group members to\n# the table of contents of the HTML help documentation and to the tree view.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nTOC_EXPAND             = YES\n\n# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and\n# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that\n# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help\n# (.qch) of the generated HTML documentation.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_QHP           = NO\n\n# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify\n# the file name of the resulting .qch file. The path specified is relative to\n# the HTML output folder.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQCH_FILE               =\n\n# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help\n# Project output. For more information please see Qt Help Project / Namespace\n# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_NAMESPACE          =\n\n# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt\n# Help Project output. For more information please see Qt Help Project / Virtual\n# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-\n# folders).\n# The default value is: doc.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_VIRTUAL_FOLDER     = doc\n\n# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom\n# filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_NAME   =\n\n# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the\n# custom filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_ATTRS  =\n\n# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this\n# project's filter section matches. Qt Help Project / Filter Attributes (see:\n# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_SECT_FILTER_ATTRS  =\n\n# The QHG_LOCATION tag can be used to specify the location of Qt's\n# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the\n# generated .qhp file.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHG_LOCATION           =\n\n# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be\n# generated, together with the HTML files, they form an Eclipse help plugin. To\n# install this plugin and make it available under the help contents menu in\n# Eclipse, the contents of the directory containing the HTML and XML files needs\n# to be copied into the plugins directory of eclipse. The name of the directory\n# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.\n# After copying Eclipse needs to be restarted before the help appears.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_ECLIPSEHELP   = NO\n\n# A unique identifier for the Eclipse help plugin. When installing the plugin\n# the directory name containing the HTML and XML files should also have this\n# name. Each documentation set should have its own identifier.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.\n\nECLIPSE_DOC_ID         = org.doxygen.Project\n\n# If you want full control over the layout of the generated HTML pages it might\n# be necessary to disable the index and replace it with your own. The\n# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top\n# of each HTML page. A value of NO enables the index and the value YES disables\n# it. Since the tabs in the index contain the same information as the navigation\n# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nDISABLE_INDEX          = NO\n\n# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index\n# structure should be generated to display hierarchical information. If the tag\n# value is set to YES, a side panel will be generated containing a tree-like\n# index structure (just like the one that is generated for HTML Help). For this\n# to work a browser that supports JavaScript, DHTML, CSS and frames is required\n# (i.e. any modern browser). Windows users are probably better off using the\n# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can\n# further fine-tune the look of the index. As an example, the default style\n# sheet generated by doxygen has an example that shows how to put an image at\n# the root of the tree instead of the PROJECT_NAME. Since the tree basically has\n# the same information as the tab index, you could consider setting\n# DISABLE_INDEX to YES when enabling this option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_TREEVIEW      = NO\n\n# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that\n# doxygen will group on one line in the generated HTML documentation.\n#\n# Note that a value of 0 will completely suppress the enum values from appearing\n# in the overview section.\n# Minimum value: 0, maximum value: 20, default value: 4.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nENUM_VALUES_PER_LINE   = 4\n\n# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used\n# to set the initial width (in pixels) of the frame in which the tree is shown.\n# Minimum value: 0, maximum value: 1500, default value: 250.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nTREEVIEW_WIDTH         = 250\n\n# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to\n# external symbols imported via tag files in a separate window.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nEXT_LINKS_IN_WINDOW    = NO\n\n# Use this tag to change the font size of LaTeX formulas included as images in\n# the HTML documentation. When you change the font size after a successful\n# doxygen run you need to manually remove any form_*.png images from the HTML\n# output directory to force them to be regenerated.\n# Minimum value: 8, maximum value: 50, default value: 10.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_FONTSIZE       = 10\n\n# Use the FORMULA_TRANPARENT tag to determine whether or not the images\n# generated for formulas are transparent PNGs. Transparent PNGs are not\n# supported properly for IE 6.0, but are supported on all modern browsers.\n#\n# Note that when changing this option you need to delete any form_*.png files in\n# the HTML output directory before the changes have effect.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_TRANSPARENT    = YES\n\n# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see\n# http://www.mathjax.org) which uses client side JavaScript for the rendering\n# instead of using prerendered bitmaps. Use this if you do not have LaTeX\n# installed or if you want to formulas look prettier in the HTML output. When\n# enabled you may also need to install MathJax separately and configure the path\n# to it using the MATHJAX_RELPATH option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nUSE_MATHJAX            = NO\n\n# When MathJax is enabled you can set the default output format to be used for\n# the MathJax output. See the MathJax site (see:\n# http://docs.mathjax.org/en/latest/output.html) for more details.\n# Possible values are: HTML-CSS (which is slower, but has the best\n# compatibility), NativeMML (i.e. MathML) and SVG.\n# The default value is: HTML-CSS.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_FORMAT         = HTML-CSS\n\n# When MathJax is enabled you need to specify the location relative to the HTML\n# output directory using the MATHJAX_RELPATH option. The destination directory\n# should contain the MathJax.js script. For instance, if the mathjax directory\n# is located at the same level as the HTML output directory, then\n# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax\n# Content Delivery Network so you can quickly see the result without installing\n# MathJax. However, it is strongly recommended to install a local copy of\n# MathJax from http://www.mathjax.org before deployment.\n# The default value is: http://cdn.mathjax.org/mathjax/latest.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest\n\n# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax\n# extension names that should be enabled during MathJax rendering. For example\n# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_EXTENSIONS     =\n\n# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces\n# of code that will be used on startup of the MathJax code. See the MathJax site\n# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an\n# example see the documentation.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_CODEFILE       =\n\n# When the SEARCHENGINE tag is enabled doxygen will generate a search box for\n# the HTML output. The underlying search engine uses javascript and DHTML and\n# should work on any modern browser. Note that when using HTML help\n# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)\n# there is already a search function so this one should typically be disabled.\n# For large projects the javascript based search engine can be slow, then\n# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to\n# search using the keyboard; to jump to the search box use <access key> + S\n# (what the <access key> is depends on the OS and browser, but it is typically\n# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down\n# key> to jump into the search results window, the results can be navigated\n# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel\n# the search. The filter options can be selected when the cursor is inside the\n# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>\n# to select a filter and <Enter> or <escape> to activate or cancel the filter\n# option.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nSEARCHENGINE           = NO\n\n# When the SERVER_BASED_SEARCH tag is enabled the search engine will be\n# implemented using a web server instead of a web client using JavaScript. There\n# are two flavours of web server based searching depending on the\n# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for\n# searching and an index file used by the script. When EXTERNAL_SEARCH is\n# enabled the indexing and searching needs to be provided by external tools. See\n# the section \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSERVER_BASED_SEARCH    = NO\n\n# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP\n# script for searching. Instead the search results are written to an XML file\n# which needs to be processed by an external indexer. Doxygen will invoke an\n# external search engine pointed to by the SEARCHENGINE_URL option to obtain the\n# search results.\n#\n# Doxygen ships with an example indexer ( doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/).\n#\n# See the section \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH        = NO\n\n# The SEARCHENGINE_URL should point to a search engine hosted by a web server\n# which will return the search results when EXTERNAL_SEARCH is enabled.\n#\n# Doxygen ships with an example indexer ( doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/). See the section \"External Indexing and\n# Searching\" for details.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHENGINE_URL       =\n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed\n# search data is written to a file for indexing by an external tool. With the\n# SEARCHDATA_FILE tag the name of this file can be specified.\n# The default file is: searchdata.xml.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHDATA_FILE        = searchdata.xml\n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the\n# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is\n# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple\n# projects and redirect the results back to the right project.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH_ID     =\n\n# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen\n# projects other than the one defined by this configuration file, but that are\n# all added to the same external search index. Each project needs to have a\n# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of\n# to a relative location where the documentation can be found. The format is:\n# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTRA_SEARCH_MAPPINGS  =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the LaTeX output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output.\n# The default value is: YES.\n\nGENERATE_LATEX         = NO\n\n# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_OUTPUT           = latex\n\n# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be\n# invoked.\n#\n# Note that when enabling USE_PDFLATEX this option is only used for generating\n# bitmaps for formulas in the HTML output, but not in the Makefile that is\n# written to the output directory.\n# The default file is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_CMD_NAME         = latex\n\n# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate\n# index for LaTeX.\n# The default file is: makeindex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nMAKEINDEX_CMD_NAME     = makeindex\n\n# If the COMPACT_LATEX tag is set to YES doxygen generates more compact LaTeX\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nCOMPACT_LATEX          = NO\n\n# The PAPER_TYPE tag can be used to set the paper type that is used by the\n# printer.\n# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x\n# 14 inches) and executive (7.25 x 10.5 inches).\n# The default value is: a4.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPAPER_TYPE             = a4wide\n\n# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names\n# that should be included in the LaTeX output. To get the times font for\n# instance you can specify\n# EXTRA_PACKAGES=times\n# If left blank no extra packages will be included.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nEXTRA_PACKAGES         =\n\n# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the\n# generated LaTeX document. The header should contain everything until the first\n# chapter. If it is left blank doxygen will generate a standard header. See\n# section \"Doxygen usage\" for information on how to let doxygen write the\n# default header to a separate file.\n#\n# Note: Only use a user-defined header if you know what you are doing! The\n# following commands have a special meaning inside the header: $title,\n# $datetime, $date, $doxygenversion, $projectname, $projectnumber. Doxygen will\n# replace them by respectively the title of the page, the current date and time,\n# only the current date, the version number of doxygen, the project name (see\n# PROJECT_NAME), or the project number (see PROJECT_NUMBER).\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HEADER           =\n\n# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the\n# generated LaTeX document. The footer should contain everything after the last\n# chapter. If it is left blank doxygen will generate a standard footer.\n#\n# Note: Only use a user-defined footer if you know what you are doing!\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_FOOTER           =\n\n# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the LATEX_OUTPUT output\n# directory. Note that the files will be copied as-is; there are no commands or\n# markers available.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_EXTRA_FILES      =\n\n# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is\n# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will\n# contain links (just like the HTML output) instead of page references. This\n# makes the output suitable for online browsing using a PDF viewer.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPDF_HYPERLINKS         = NO\n\n# If the LATEX_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate\n# the PDF file directly from the LaTeX files. Set this option to YES to get a\n# higher quality PDF documentation.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nUSE_PDFLATEX           = NO\n\n# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode\n# command to the generated LaTeX files. This will instruct LaTeX to keep running\n# if errors occur, instead of asking the user for help. This option is also used\n# when generating formulas in HTML.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BATCHMODE        = NO\n\n# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the\n# index chapters (such as File Index, Compound Index, etc.) in the output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HIDE_INDICES     = NO\n\n# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source\n# code with syntax highlighting in the LaTeX output.\n#\n# Note that which sources are shown also depends on other settings such as\n# SOURCE_BROWSER.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_SOURCE_CODE      = NO\n\n# The LATEX_BIB_STYLE tag can be used to specify the style to use for the\n# bibliography, e.g. plainnat, or ieeetr. See\n# http://en.wikipedia.org/wiki/BibTeX and \\cite for more info.\n# The default value is: plain.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BIB_STYLE        = plain\n\n#---------------------------------------------------------------------------\n# Configuration options related to the RTF output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_RTF tag is set to YES doxygen will generate RTF output. The\n# RTF output is optimized for Word 97 and may not look too pretty with other RTF\n# readers/editors.\n# The default value is: NO.\n\nGENERATE_RTF           = NO\n\n# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: rtf.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_OUTPUT             = rtf\n\n# If the COMPACT_RTF tag is set to YES doxygen generates more compact RTF\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nCOMPACT_RTF            = NO\n\n# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will\n# contain hyperlink fields. The RTF file will contain links (just like the HTML\n# output) instead of page references. This makes the output suitable for online\n# browsing using Word or some other Word compatible readers that support those\n# fields.\n#\n# Note: WordPad (write) and others do not support links.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_HYPERLINKS         = NO\n\n# Load stylesheet definitions from file. Syntax is similar to doxygen's config\n# file, i.e. a series of assignments. You only have to provide replacements,\n# missing definitions are set to their default value.\n#\n# See also section \"Doxygen usage\" for information on how to generate the\n# default style sheet that doxygen normally uses.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_STYLESHEET_FILE    =\n\n# Set optional variables used in the generation of an RTF document. Syntax is\n# similar to doxygen's config file. A template extensions file can be generated\n# using doxygen -e rtf extensionFile.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_EXTENSIONS_FILE    =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the man page output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_MAN tag is set to YES doxygen will generate man pages for\n# classes and files.\n# The default value is: NO.\n\nGENERATE_MAN           = NO\n\n# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it. A directory man3 will be created inside the directory specified by\n# MAN_OUTPUT.\n# The default directory is: man.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_OUTPUT             = man\n\n# The MAN_EXTENSION tag determines the extension that is added to the generated\n# man pages. In case the manual section does not start with a number, the number\n# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is\n# optional.\n# The default value is: .3.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_EXTENSION          = .3\n\n# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it\n# will generate one additional man file for each entity documented in the real\n# man page(s). These additional files only source the real man page, but without\n# them the man command would be unable to find the correct page.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_LINKS              = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the XML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_XML tag is set to YES doxygen will generate an XML file that\n# captures the structure of the code including all documentation.\n# The default value is: NO.\n\nGENERATE_XML           = NO\n\n# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: xml.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_OUTPUT             = xml\n\n# The XML_SCHEMA tag can be used to specify a XML schema, which can be used by a\n# validating XML parser to check the syntax of the XML files.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_SCHEMA             =\n\n# The XML_DTD tag can be used to specify a XML DTD, which can be used by a\n# validating XML parser to check the syntax of the XML files.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_DTD                =\n\n# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program\n# listings (including syntax highlighting and cross-referencing information) to\n# the XML output. Note that enabling this will significantly increase the size\n# of the XML output.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_PROGRAMLISTING     = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to the DOCBOOK output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_DOCBOOK tag is set to YES doxygen will generate Docbook files\n# that can be used to generate PDF.\n# The default value is: NO.\n\nGENERATE_DOCBOOK       = NO\n\n# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.\n# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in\n# front of it.\n# The default directory is: docbook.\n# This tag requires that the tag GENERATE_DOCBOOK is set to YES.\n\nDOCBOOK_OUTPUT         = docbook\n\n#---------------------------------------------------------------------------\n# Configuration options for the AutoGen Definitions output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_AUTOGEN_DEF tag is set to YES doxygen will generate an AutoGen\n# Definitions (see http://autogen.sf.net) file that captures the structure of\n# the code including all documentation. Note that this feature is still\n# experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_AUTOGEN_DEF   = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the Perl module output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_PERLMOD tag is set to YES doxygen will generate a Perl module\n# file that captures the structure of the code including all documentation.\n#\n# Note that this feature is still experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_PERLMOD       = NO\n\n# If the PERLMOD_LATEX tag is set to YES doxygen will generate the necessary\n# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI\n# output from the Perl module output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_LATEX          = NO\n\n# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be nicely\n# formatted so it can be parsed by a human reader. This is useful if you want to\n# understand what is going on. On the other hand, if this tag is set to NO the\n# size of the Perl module output will be much smaller and Perl will parse it\n# just the same.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_PRETTY         = YES\n\n# The names of the make variables in the generated doxyrules.make file are\n# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful\n# so different doxyrules.make files included by the same Makefile don't\n# overwrite each other's variables.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_MAKEVAR_PREFIX =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the preprocessor\n#---------------------------------------------------------------------------\n\n# If the ENABLE_PREPROCESSING tag is set to YES doxygen will evaluate all\n# C-preprocessor directives found in the sources and include files.\n# The default value is: YES.\n\nENABLE_PREPROCESSING   = YES\n\n# If the MACRO_EXPANSION tag is set to YES doxygen will expand all macro names\n# in the source code. If set to NO only conditional compilation will be\n# performed. Macro expansion can be done in a controlled way by setting\n# EXPAND_ONLY_PREDEF to YES.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nMACRO_EXPANSION        = YES\n\n# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then\n# the macro expansion is limited to the macros specified with the PREDEFINED and\n# EXPAND_AS_DEFINED tags.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_ONLY_PREDEF     = NO\n\n# If the SEARCH_INCLUDES tag is set to YES the includes files in the\n# INCLUDE_PATH will be searched if a #include is found.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSEARCH_INCLUDES        = YES\n\n# The INCLUDE_PATH tag can be used to specify one or more directories that\n# contain include files that are not input files but should be processed by the\n# preprocessor.\n# This tag requires that the tag SEARCH_INCLUDES is set to YES.\n\nINCLUDE_PATH           = ../include\n\n# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard\n# patterns (like *.h and *.hpp) to filter out the header-files in the\n# directories. If left blank, the patterns specified with FILE_PATTERNS will be\n# used.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nINCLUDE_FILE_PATTERNS  = *.h\n\n# The PREDEFINED tag can be used to specify one or more macro names that are\n# defined before the preprocessor is started (similar to the -D option of e.g.\n# gcc). The argument of the tag is a list of macros of the form: name or\n# name=definition (no spaces). If the definition and the \"=\" are omitted, \"=1\"\n# is assumed. To prevent a macro definition from being undefined via #undef or\n# recursively expanded use the := operator instead of the = operator.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nPREDEFINED             = \"_MSC_VER=1800\" \\\n                         _CPPRTTI \\\n                         _WIN32 \\\n                         JSONCPP_DOC_EXCLUDE_IMPLEMENTATION\n\n# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this\n# tag can be used to specify a list of macro names that should be expanded. The\n# macro definition that is found in the sources will be used. Use the PREDEFINED\n# tag if you want to use a different macro definition that overrules the\n# definition found in the source code.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_AS_DEFINED      =\n\n# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will\n# remove all references to function-like macros that are alone on a line, have an\n# all uppercase name, and do not end with a semicolon. Such function macros are\n# typically used for boiler-plate code, and will confuse the parser if not\n# removed.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSKIP_FUNCTION_MACROS   = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to external references\n#---------------------------------------------------------------------------\n\n# The TAGFILES tag can be used to specify one or more tag files. For each tag\n# file the location of the external documentation should be added. The format of\n# a tag file without this location is as follows:\n# TAGFILES = file1 file2 ...\n# Adding location for the tag files is done as follows:\n# TAGFILES = file1=loc1 \"file2 = loc2\" ...\n# where loc1 and loc2 can be relative or absolute paths or URLs. See the\n# section \"Linking to external documentation\" for more information about the use\n# of tag files.\n# Note: Each tag file must have an unique name (where the name does NOT include\n# the path). If a tag file is not located in the directory in which doxygen is\n# run, you must also specify the path to the tagfile here.\n\nTAGFILES               =\n\n# When a file name is specified after GENERATE_TAGFILE, doxygen will create a\n# tag file that is based on the input files it reads. See section \"Linking to\n# external documentation\" for more information about the usage of tag files.\n\nGENERATE_TAGFILE       =\n\n# If the ALLEXTERNALS tag is set to YES all external class will be listed in the\n# class index. If set to NO only the inherited external classes will be listed.\n# The default value is: NO.\n\nALLEXTERNALS           = NO\n\n# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed in\n# the modules index. If set to NO, only the current project's groups will be\n# listed.\n# The default value is: YES.\n\nEXTERNAL_GROUPS        = YES\n\n# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed in\n# the related pages index. If set to NO, only the current project's pages will\n# be listed.\n# The default value is: YES.\n\nEXTERNAL_PAGES         = YES\n\n# The PERL_PATH should be the absolute path and name of the perl script\n# interpreter (i.e. the result of 'which perl').\n# The default file (with absolute path) is: /usr/bin/perl.\n\nPERL_PATH              = /usr/bin/perl\n\n#---------------------------------------------------------------------------\n# Configuration options related to the dot tool\n#---------------------------------------------------------------------------\n\n# If the CLASS_DIAGRAMS tag is set to YES doxygen will generate a class diagram\n# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to\n# NO turns the diagrams off. Note that this option also works with HAVE_DOT\n# disabled, but it is recommended to install and use dot, since it yields more\n# powerful graphs.\n# The default value is: YES.\n\nCLASS_DIAGRAMS         = NO\n\n# You can define message sequence charts within doxygen comments using the \\msc\n# command. Doxygen will then run the mscgen tool (see:\n# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the\n# documentation. The MSCGEN_PATH tag allows you to specify the directory where\n# the mscgen tool resides. If left empty the tool is assumed to be found in the\n# default search path.\n\nMSCGEN_PATH            =\n\n# If set to YES, the inheritance and collaboration graphs will hide inheritance\n# and usage relations if the target is undocumented or is not a class.\n# The default value is: YES.\n\nHIDE_UNDOC_RELATIONS   = NO\n\n# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is\n# available from the path. This tool is part of Graphviz (see:\n# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent\n# Bell Labs. The other options in this section have no effect if this option is\n# set to NO\n# The default value is: NO.\n\nHAVE_DOT               = %HAVE_DOT%\n\n# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed\n# to run in parallel. When set to 0 doxygen will base this on the number of\n# processors available in the system. You can set it explicitly to a value\n# larger than 0 to get control over the balance between CPU load and processing\n# speed.\n# Minimum value: 0, maximum value: 32, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_NUM_THREADS        = 0\n\n# When you want a differently looking font n the dot files that doxygen\n# generates you can specify the font name using DOT_FONTNAME. You need to make\n# sure dot is able to find the font, which can be done by putting it in a\n# standard location or by setting the DOTFONTPATH environment variable or by\n# setting DOT_FONTPATH to the directory containing the font.\n# The default value is: Helvetica.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTNAME           = FreeSans\n\n# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of\n# dot graphs.\n# Minimum value: 4, maximum value: 24, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTSIZE           = 10\n\n# By default doxygen will tell dot to use the default font as specified with\n# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set\n# the path where dot can find it using this tag.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTPATH           =\n\n# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for\n# each documented class showing the direct and indirect inheritance relations.\n# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCLASS_GRAPH            = YES\n\n# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a\n# graph for each documented class showing the direct and indirect implementation\n# dependencies (inheritance, containment, and class references variables) of the\n# class with other documented classes.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCOLLABORATION_GRAPH    = YES\n\n# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for\n# groups, showing the direct groups dependencies.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGROUP_GRAPHS           = YES\n\n# If the UML_LOOK tag is set to YES doxygen will generate inheritance and\n# collaboration diagrams in a style similar to the OMG's Unified Modeling\n# Language.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LOOK               = %UML_LOOK%\n\n# If the UML_LOOK tag is enabled, the fields and methods are shown inside the\n# class node. If there are many fields or methods and many nodes the graph may\n# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the\n# number of items for each type to make the size more manageable. Set this to 0\n# for no limit. Note that the threshold may be exceeded by 50% before the limit\n# is enforced. So when you set the threshold to 10, up to 15 fields may appear,\n# but if the number exceeds 15, the total amount of fields shown is limited to\n# 10.\n# Minimum value: 0, maximum value: 100, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LIMIT_NUM_FIELDS   = 10\n\n# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and\n# collaboration graphs will show the relations between templates and their\n# instances.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nTEMPLATE_RELATIONS     = YES\n\n# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to\n# YES then doxygen will generate a graph for each documented file showing the\n# direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDE_GRAPH          = YES\n\n# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are\n# set to YES then doxygen will generate a graph for each documented file showing\n# the direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDED_BY_GRAPH      = YES\n\n# If the CALL_GRAPH tag is set to YES then doxygen will generate a call\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable call graphs for selected\n# functions only using the \\callgraph command.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALL_GRAPH             = NO\n\n# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable caller graphs for selected\n# functions only using the \\callergraph command.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALLER_GRAPH           = YES\n\n# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical\n# hierarchy of all classes instead of a textual one.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGRAPHICAL_HIERARCHY    = YES\n\n# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the\n# dependencies a directory has on other directories in a graphical way. The\n# dependency relations are determined by the #include relations between the\n# files in the directories.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDIRECTORY_GRAPH        = YES\n\n# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images\n# generated by dot.\n# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order\n# to make the SVG files visible in IE 9+ (other browsers do not have this\n# requirement).\n# Possible values are: png, jpg, gif and svg.\n# The default value is: png.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_IMAGE_FORMAT       = png\n\n# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to\n# enable generation of interactive SVG images that allow zooming and panning.\n#\n# Note that this requires a modern browser other than Internet Explorer. Tested\n# and working are Firefox, Chrome, Safari, and Opera.\n# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make\n# the SVG files visible. Older versions of IE do not have SVG support.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINTERACTIVE_SVG        = NO\n\n# The DOT_PATH tag can be used to specify the path where the dot tool can be\n# found. If left blank, it is assumed the dot tool can be found in the path.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_PATH               = %DOT_PATH%\n\n# The DOTFILE_DIRS tag can be used to specify one or more directories that\n# contain dot files that are included in the documentation (see the \\dotfile\n# command).\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOTFILE_DIRS           =\n\n# The MSCFILE_DIRS tag can be used to specify one or more directories that\n# contain msc files that are included in the documentation (see the \\mscfile\n# command).\n\nMSCFILE_DIRS           =\n\n# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes\n# that will be shown in the graph. If the number of nodes in a graph becomes\n# larger than this value, doxygen will truncate the graph, which is visualized\n# by representing a node as a red box. Note that doxygen if the number of direct\n# children of the root node in a graph is already larger than\n# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that\n# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.\n# Minimum value: 0, maximum value: 10000, default value: 50.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_GRAPH_MAX_NODES    = 50\n\n# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs\n# generated by dot. A depth value of 3 means that only nodes reachable from the\n# root by following a path via at most 3 edges will be shown. Nodes that lay\n# further from the root node will be omitted. Note that setting this option to 1\n# or 2 may greatly reduce the computation time needed for large code bases. Also\n# note that the size of a graph can be further restricted by\n# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.\n# Minimum value: 0, maximum value: 1000, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nMAX_DOT_GRAPH_DEPTH    = 1000\n\n# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent\n# background. This is disabled by default, because dot on Windows does not seem\n# to support this out of the box.\n#\n# Warning: Depending on the platform used, enabling this option may lead to\n# badly anti-aliased labels on the edges of a graph (i.e. they become hard to\n# read).\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_TRANSPARENT        = NO\n\n# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output\n# files in one run (i.e. multiple -o and -T options on the command line). This\n# makes dot run faster, but since only newer versions of dot (>1.8.10) support\n# this, this feature is disabled by default.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_MULTI_TARGETS      = YES\n\n# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page\n# explaining the meaning of the various boxes and arrows in the dot generated\n# graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGENERATE_LEGEND        = YES\n\n# If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot\n# files that are used to generate the various graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_CLEANUP            = YES\n"
  },
  {
    "path": "doc/footer.html",
    "content": "<!-- HTML footer for doxygen 1.8.13-->\n<!-- start footer part -->\n<!--BEGIN GENERATE_TREEVIEW-->\n<div id=\"nav-path\" class=\"navpath\"><!-- id is needed for treeview function! -->\n  <ul>\n    $navpath\n    <li class=\"footer\">$generatedby\n    <a href=\"http://www.doxygen.org/index.html\">\n    <img class=\"footer\" src=\"$relpath^doxygen.png\" alt=\"doxygen\"/></a> $doxygenversion </li>\n  </ul>\n</div>\n<!--END GENERATE_TREEVIEW-->\n<!--BEGIN !GENERATE_TREEVIEW-->\n<hr class=\"footer\"/><address class=\"footer\"><small>\n$generatedby &#160;<a href=\"http://www.doxygen.org/index.html\">\n<img class=\"footer\" src=\"$relpath^doxygen.png\" alt=\"doxygen\"/>\n</a> $doxygenversion\n</small></address>\n<!--END !GENERATE_TREEVIEW-->\n</body>\n</html>\n"
  },
  {
    "path": "doc/header.html",
    "content": "<!-- HTML header for doxygen 1.8.13-->\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>\n<meta http-equiv=\"X-UA-Compatible\" content=\"IE=9\"/>\n<meta name=\"generator\" content=\"Doxygen $doxygenversion\"/>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n<link href=\"$relpath^tabs.css\" rel=\"stylesheet\" type=\"text/css\"/>\n<script type=\"text/javascript\" src=\"$relpath^jquery.js\"></script>\n<script type=\"text/javascript\" src=\"$relpath^dynsections.js\"></script>\n$treeview\n$search\n$mathjax\n<link href=\"$relpath^$stylesheet\" rel=\"stylesheet\" type=\"text/css\" />\n$extrastylesheet\n</head>\n<body>\n<div id=\"top\"><!-- do not remove this div, it is closed by doxygen! -->\n\n<!--BEGIN TITLEAREA-->\n<div id=\"titlearea\">\n<table cellspacing=\"0\" cellpadding=\"0\">\n <tbody>\n <tr style=\"height: 56px;\">\n  <!--BEGIN PROJECT_LOGO-->\n  <td id=\"projectlogo\"><img alt=\"Logo\" src=\"$relpath^$projectlogo\"/></td>\n  <!--END PROJECT_LOGO-->\n  <!--BEGIN DISABLE_INDEX-->\n   <!--BEGIN SEARCHENGINE-->\n   <td>$searchbox</td>\n   <!--END SEARCHENGINE-->\n  <!--END DISABLE_INDEX-->\n </tr>\n </tbody>\n</table>\n</div>\n<!--END TITLEAREA-->\n<body bgcolor=\"#ffffff\">\n<table width=\"100%\">\n  <tr>\n    <td width=\"30%\" align=\"left\" valign=\"center\">\n      <a href=\"https://github.com/open-source-parsers/jsoncpp\">\n      JsonCpp project page\n      </a>\n    </td>\n    <td width=\"20%\" align=\"center\" valign=\"center\">\n      <a href=\"hierarchy.html\">\n        Classes\n      </a>\n    </td>\n    <td width=\"20%\" align=\"center\" valign=\"center\">\n      <a href=\"namespace_json.html\">\n        Namespace\n      </a>\n    </td>\n    <td width=\"30%\" align=\"right\" valign=\"center\">\n      <a href=\"http://open-source-parsers.github.io/jsoncpp-docs/doxygen/\">JsonCpp home page</a>\n    </td>\n  </tr>\n</table>\n\n<hr>\n<!-- end header part -->\n"
  },
  {
    "path": "doc/jsoncpp.dox",
    "content": "/**\n\\mainpage\n\\section _intro Introduction\n\n<a HREF=\"http://www.json.org/\">JSON (JavaScript Object Notation)</a>\n is a lightweight data-interchange format.\n\nHere is an example of JSON data:\n\\verbatim\n{\n    \"encoding\" : \"UTF-8\",\n    \"plug-ins\" : [\n        \"python\",\n        \"c++\",\n        \"ruby\"\n        ],\n    \"indent\" : { \"length\" : 3, \"use_space\": true }\n}\n\\endverbatim\n<b>JsonCpp</b> supports comments as <i>meta-data</i>:\n\\code\n// Configuration options\n{\n    // Default encoding for text\n    \"encoding\" : \"UTF-8\",\n\n    // Plug-ins loaded at start-up\n    \"plug-ins\" : [\n        \"python\",\n        \"c++\",  // trailing comment\n        \"ruby\"\n        ],\n\n    // Tab indent size\n    // (multi-line comment)\n    \"indent\" : { /*embedded comment*/ \"length\" : 3, \"use_space\": true }\n}\n\\endcode\n\n\\section _features Features\n- read and write JSON document\n- attach C++ style comments to element during parsing\n- rewrite JSON document preserving original comments\n\nNotes: Comments used to be supported in JSON but were removed for\nportability (C like comments are not supported in Python). Since\ncomments are useful in configuration/input file, this feature was\npreserved.\n\n\\section _example Code example\n\n\\code\nJson::Value root;   // 'root' will contain the root value after parsing.\nstd::cin >> root;\n\n// You can also read into a particular sub-value.\nstd::cin >> root[\"subtree\"];\n\n// Get the value of the member of root named 'encoding',\n// and return 'UTF-8' if there is no such member.\nstd::string encoding = root.get(\"encoding\", \"UTF-8\" ).asString();\n\n// Get the value of the member of root named 'plug-ins'; return a 'null' value if\n// there is no such member.\nconst Json::Value plugins = root[\"plug-ins\"];\n\n// Iterate over the sequence elements.\nfor ( int index = 0; index < plugins.size(); ++index )\n   loadPlugIn( plugins[index].asString() );\n\n// Try other datatypes. Some are auto-convertible to others.\nfoo::setIndentLength( root[\"indent\"].get(\"length\", 3).asInt() );\nfoo::setIndentUseSpace( root[\"indent\"].get(\"use_space\", true).asBool() );\n\n// Since Json::Value has an implicit constructor for all value types, it is not\n// necessary to explicitly construct the Json::Value object.\nroot[\"encoding\"] = foo::getCurrentEncoding();\nroot[\"indent\"][\"length\"] = foo::getCurrentIndentLength();\nroot[\"indent\"][\"use_space\"] = foo::getCurrentIndentUseSpace();\n\n// If you like the defaults, you can insert directly into a stream.\nstd::cout << root;\n// Of course, you can write to `std::ostringstream` if you prefer.\n\n// If desired, remember to add a linefeed and flush.\nstd::cout << std::endl;\n\\endcode\n\n\\section _advanced Advanced usage\n\nConfigure *builders* to create *readers* and *writers*. For\nconfiguration, we use our own `Json::Value` (rather than\nstandard setters/getters) so that we can add\nfeatures without losing binary-compatibility.\n\n\\code\n// For convenience, use `writeString()` with a specialized builder.\nJson::StreamWriterBuilder wbuilder;\nwbuilder[\"indentation\"] = \"\\t\";\nstd::string document = Json::writeString(wbuilder, root);\n\n// Here, using a specialized Builder, we discard comments and\n// record errors as we parse.\nJson::CharReaderBuilder rbuilder;\nrbuilder[\"collectComments\"] = false;\nstd::string errs;\nbool ok = Json::parseFromStream(rbuilder, std::cin, &root, &errs);\n\\endcode\n\nYes, compile-time configuration-checking would be helpful,\nbut `Json::Value` lets you\nwrite and read the builder configuration, which is better! In other words,\nyou can configure your JSON parser using JSON.\n\nCharReaders and StreamWriters are not thread-safe, but they are re-usable.\n\\code\nJson::CharReaderBuilder rbuilder;\ncfg >> rbuilder.settings_;\nstd::unique_ptr<Json::CharReader> const reader(rbuilder.newCharReader());\nreader->parse(start, stop, &value1, &errs);\n// ...\nreader->parse(start, stop, &value2, &errs);\n// etc.\n\\endcode\n\n\\section _pbuild Build instructions\nThe build instructions are located in the file\n<a HREF=\"https://github.com/open-source-parsers/jsoncpp/blob/master/README.md\">README.md</a> in the top-directory of the project.\n\nThe latest version of the source is available in the project's GitHub repository:\n<a HREF=\"https://github.com/open-source-parsers/jsoncpp/\">\njsoncpp</a>\n\n\\section _news What's New?\nThe description of latest changes can be found in\n<a HREF=\"https://github.com/open-source-parsers/jsoncpp/wiki/NEWS\">\n  the NEWS wiki\n</a>.\n\n\\section _rlinks Related links\n- <a HREF=\"http://www.json.org/\">JSON</a> Specification and alternate language implementations.\n- <a HREF=\"http://www.yaml.org/\">YAML</a> A data format designed for human readability.\n- <a HREF=\"http://www.cl.cam.ac.uk/~mgk25/unicode.html\">UTF-8 and Unicode FAQ</a>.\n\n\\section _plinks Old project links\n- <a href=\"https://sourceforge.net/projects/jsoncpp/\">https://sourceforge.net/projects/jsoncpp/</a>\n- <a href=\"http://jsoncpp.sourceforge.net\">http://jsoncpp.sourceforge.net</a>\n- <a href=\"http://sourceforge.net/projects/jsoncpp/files/\">http://sourceforge.net/projects/jsoncpp/files/</a>\n- <a href=\"http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/\">http://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/trunk/</a>\n- <a href=\"http://jsoncpp.sourceforge.net/old.html\">http://jsoncpp.sourceforge.net/old.html</a>\n\n\\section _license License\nSee file <a href=\"https://github.com/open-source-parsers/jsoncpp/blob/master/LICENSE\"><code>LICENSE</code></a> in the top-directory of the project.\n\nBasically JsonCpp is licensed under MIT license, or public domain if desired\nand recognized in your jurisdiction.\n\n\\author Baptiste Lepilleur <blep@users.sourceforge.net> (originator)\n\\author Christopher Dunn <cdunn2001@gmail.com> (primary maintainer)\n\\version \\include version\nWe make strong guarantees about binary-compatibility, consistent with\n<a href=\"http://apr.apache.org/versioning.html\">the Apache versioning scheme</a>.\n\\sa version.h\n*/\n"
  },
  {
    "path": "doc/readme.txt",
    "content": "The documentation is generated using doxygen (http://www.doxygen.org).\n"
  },
  {
    "path": "doc/roadmap.dox",
    "content": "/*! \\page roadmap JsonCpp roadmap\n  Moved to: https://github.com/open-source-parsers/jsoncpp/wiki/Roadmap\n*/\n"
  },
  {
    "path": "doc/web_doxyfile.in",
    "content": "# Doxyfile 1.8.5\n\n# This file describes the settings to be used by the documentation system\n# doxygen (www.doxygen.org) for a project.\n#\n# All text after a double hash (##) is considered a comment and is placed in\n# front of the TAG it is preceding.\n#\n# All text after a single hash (#) is considered a comment and will be ignored.\n# The format is:\n# TAG = value [value, ...]\n# For lists, items can also be appended using:\n# TAG += value [value, ...]\n# Values that contain spaces should be placed between quotes (\\\" \\\").\n\n#---------------------------------------------------------------------------\n# Project related configuration options\n#---------------------------------------------------------------------------\n\n# This tag specifies the encoding used for all characters in the config file\n# that follow. The default is UTF-8 which is also the encoding used for all text\n# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv\n# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv\n# for the list of possible encodings.\n# The default value is: UTF-8.\n\nDOXYFILE_ENCODING      = UTF-8\n\n# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by\n# double-quotes, unless you are using Doxywizard) that should identify the\n# project for which the documentation is generated. This name is used in the\n# title of most generated pages and in a few other places.\n# The default value is: My Project.\n\nPROJECT_NAME           = \"JsonCpp\"\n\n# The PROJECT_NUMBER tag can be used to enter a project or revision number. This\n# could be handy for archiving the generated documentation or if some version\n# control system is used.\n\nPROJECT_NUMBER         = %JSONCPP_VERSION%\n\n# Using the PROJECT_BRIEF tag one can provide an optional one line description\n# for a project that appears at the top of each page and should give viewer a\n# quick idea about the purpose of the project. Keep the description short.\n\nPROJECT_BRIEF           = \"JSON data format manipulation library\"\n\n# With the PROJECT_LOGO tag one can specify an logo or icon that is included in\n# the documentation. The maximum height of the logo should not exceed 55 pixels\n# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo\n# to the output directory.\n\nPROJECT_LOGO           =\n\n# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path\n# into which the generated documentation will be written. If a relative path is\n# entered, it will be relative to the location where doxygen was started. If\n# left blank the current directory will be used.\n\nOUTPUT_DIRECTORY       = %DOC_TOPDIR%\n\n# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-\n# directories (in 2 levels) under the output directory of each output format and\n# will distribute the generated files over these directories. Enabling this\n# option can be useful when feeding doxygen a huge amount of source files, where\n# putting all generated files in the same directory would otherwise causes\n# performance problems for the file system.\n# The default value is: NO.\n\nCREATE_SUBDIRS         = NO\n\n# The OUTPUT_LANGUAGE tag is used to specify the language in which all\n# documentation generated by doxygen is written. Doxygen will use this\n# information to generate all constant output in the proper language.\n# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-\n# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,\n# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,\n# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,\n# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,\n# Turkish, Ukrainian and Vietnamese.\n# The default value is: English.\n\nOUTPUT_LANGUAGE        = English\n\n# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member\n# descriptions after the members that are listed in the file and class\n# documentation (similar to Javadoc). Set to NO to disable this.\n# The default value is: YES.\n\nBRIEF_MEMBER_DESC      = YES\n\n# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief\n# description of a member or function before the detailed description\n#\n# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the\n# brief descriptions will be completely suppressed.\n# The default value is: YES.\n\nREPEAT_BRIEF           = YES\n\n# This tag implements a quasi-intelligent brief description abbreviator that is\n# used to form the text in various listings. Each string in this list, if found\n# as the leading text of the brief description, will be stripped from the text\n# and the result, after processing the whole list, is used as the annotated\n# text. Otherwise, the brief description is used as-is. If left blank, the\n# following values are used ($name is automatically replaced with the name of\n# the entity):The $name class, The $name widget, The $name file, is, provides,\n# specifies, contains, represents, a, an and the.\n\nABBREVIATE_BRIEF       = \"The $name class\" \\\n                         \"The $name widget\" \\\n                         \"The $name file\" \\\n                         is \\\n                         provides \\\n                         specifies \\\n                         contains \\\n                         represents \\\n                         a \\\n                         an \\\n                         the\n\n# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then\n# doxygen will generate a detailed section even if there is only a brief\n# description.\n# The default value is: NO.\n\nALWAYS_DETAILED_SEC    = NO\n\n# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all\n# inherited members of a class in the documentation of that class as if those\n# members were ordinary class members. Constructors, destructors and assignment\n# operators of the base classes will not be shown.\n# The default value is: NO.\n\nINLINE_INHERITED_MEMB  = NO\n\n# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path\n# before files name in the file list and in the header files. If set to NO the\n# shortest path that makes the file name unique will be used\n# The default value is: YES.\n\nFULL_PATH_NAMES        = YES\n\n# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.\n# Stripping is only done if one of the specified strings matches the left-hand\n# part of the path. The tag can be used to show relative paths in the file list.\n# If left blank the directory from which doxygen is run is used as the path to\n# strip.\n#\n# Note that you can specify absolute paths here, but also relative paths, which\n# will be relative from the directory where doxygen is started.\n# This tag requires that the tag FULL_PATH_NAMES is set to YES.\n\nSTRIP_FROM_PATH        = %TOPDIR%\n\n# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the\n# path mentioned in the documentation of a class, which tells the reader which\n# header file to include in order to use a class. If left blank only the name of\n# the header file containing the class definition is used. Otherwise one should\n# specify the list of include paths that are normally passed to the compiler\n# using the -I flag.\n\nSTRIP_FROM_INC_PATH    = %TOPDIR%/include\n\n# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but\n# less readable) file names. This can be useful is your file systems doesn't\n# support long names like on DOS, Mac, or CD-ROM.\n# The default value is: NO.\n\nSHORT_NAMES            = NO\n\n# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the\n# first line (until the first dot) of a Javadoc-style comment as the brief\n# description. If set to NO, the Javadoc-style will behave just like regular Qt-\n# style comments (thus requiring an explicit @brief command for a brief\n# description.)\n# The default value is: NO.\n\nJAVADOC_AUTOBRIEF      = YES\n\n# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first\n# line (until the first dot) of a Qt-style comment as the brief description. If\n# set to NO, the Qt-style will behave just like regular Qt-style comments (thus\n# requiring an explicit \\brief command for a brief description.)\n# The default value is: NO.\n\nQT_AUTOBRIEF           = NO\n\n# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a\n# multi-line C++ special comment block (i.e. a block of //! or /// comments) as\n# a brief description. This used to be the default behavior. The new default is\n# to treat a multi-line C++ comment block as a detailed description. Set this\n# tag to YES if you prefer the old behavior instead.\n#\n# Note that setting this tag to YES also means that rational rose comments are\n# not recognized any more.\n# The default value is: NO.\n\nMULTILINE_CPP_IS_BRIEF = NO\n\n# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the\n# documentation from any documented member that it re-implements.\n# The default value is: YES.\n\nINHERIT_DOCS           = YES\n\n# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a\n# new page for each member. If set to NO, the documentation of a member will be\n# part of the file/class/namespace that contains it.\n# The default value is: NO.\n\nSEPARATE_MEMBER_PAGES  = NO\n\n# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen\n# uses this value to replace tabs by spaces in code fragments.\n# Minimum value: 1, maximum value: 16, default value: 4.\n\nTAB_SIZE               = 3\n\n# This tag can be used to specify a number of aliases that act as commands in\n# the documentation. An alias has the form:\n# name=value\n# For example adding\n# \"sideeffect=@par Side Effects:\\n\"\n# will allow you to put the command \\sideeffect (or @sideeffect) in the\n# documentation, which will result in a user-defined paragraph with heading\n# \"Side Effects:\". You can put \\n's in the value part of an alias to insert\n# newlines.\n\nALIASES                = \"testCaseSetup=\\link CppUT::TestCase::setUp() setUp()\\endlink\" \\\n                         \"testCaseRun=\\link CppUT::TestCase::run() run()\\endlink\" \\\n                         \"testCaseTearDown=\\link CppUT::TestCase::tearDown() tearDown()\\endlink\" \\\n                         \"json_ref=<a HREF='http://www.json.org/'>JSON (JavaScript Object Notation)</a>\"\n\n# This tag can be used to specify a number of word-keyword mappings (TCL only).\n# A mapping has the form \"name=value\". For example adding \"class=itcl::class\"\n# will allow you to use the command class in the itcl::class meaning.\n\nTCL_SUBST              =\n\n# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources\n# only. Doxygen will then generate output that is more tailored for C. For\n# instance, some of the names that are used will be different. The list of all\n# members will be omitted, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_FOR_C  = NO\n\n# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or\n# Python sources only. Doxygen will then generate output that is more tailored\n# for that language. For instance, namespaces will be presented as packages,\n# qualified scopes will look different, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_JAVA   = NO\n\n# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran\n# sources. Doxygen will then generate output that is tailored for Fortran.\n# The default value is: NO.\n\nOPTIMIZE_FOR_FORTRAN   = NO\n\n# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL\n# sources. Doxygen will then generate output that is tailored for VHDL.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_VHDL   = NO\n\n# Doxygen selects the parser to use depending on the extension of the files it\n# parses. With this tag you can assign which parser to use for a given\n# extension. Doxygen has a built-in mapping, but you can override or extend it\n# using this tag. The format is ext=language, where ext is a file extension, and\n# language is one of the parsers supported by doxygen: IDL, Java, JavaScript,\n# C#, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL. For instance to make\n# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C\n# (default is Fortran), use: inc=Fortran f=C.\n#\n# Note For files without extension you can use no_extension as a placeholder.\n#\n# Note that for custom extensions you also need to set FILE_PATTERNS otherwise\n# the files are not read by doxygen.\n\nEXTENSION_MAPPING      =\n\n# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments\n# according to the Markdown format, which allows for more readable\n# documentation. See http://daringfireball.net/projects/markdown/ for details.\n# The output of markdown processing is further processed by doxygen, so you can\n# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in\n# case of backward compatibilities issues.\n# The default value is: YES.\n\nMARKDOWN_SUPPORT       = YES\n\n# When enabled doxygen tries to link words that correspond to documented\n# classes, or namespaces to their corresponding documentation. Such a link can\n# be prevented in individual cases by by putting a % sign in front of the word\n# or globally by setting AUTOLINK_SUPPORT to NO.\n# The default value is: YES.\n\nAUTOLINK_SUPPORT       = YES\n\n# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want\n# to include (a tag file for) the STL sources as input, then you should set this\n# tag to YES in order to let doxygen match functions declarations and\n# definitions whose arguments contain STL classes (e.g. func(std::string);\n# versus func(std::string) {}). This also make the inheritance and collaboration\n# diagrams that involve STL classes more complete and accurate.\n# The default value is: NO.\n\nBUILTIN_STL_SUPPORT    = YES\n\n# If you use Microsoft's C++/CLI language, you should set this option to YES to\n# enable parsing support.\n# The default value is: NO.\n\nCPP_CLI_SUPPORT        = NO\n\n# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:\n# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen\n# will parse them like normal C++ but will assume all classes use public instead\n# of private inheritance when no explicit protection keyword is present.\n# The default value is: NO.\n\nSIP_SUPPORT            = NO\n\n# For Microsoft's IDL there are propget and propput attributes to indicate\n# getter and setter methods for a property. Setting this option to YES will make\n# doxygen to replace the get and set methods by a property in the documentation.\n# This will only work if the methods are indeed getting or setting a simple\n# type. If this is not the case, or you want to show the methods anyway, you\n# should set this option to NO.\n# The default value is: YES.\n\nIDL_PROPERTY_SUPPORT   = YES\n\n# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC\n# tag is set to YES, then doxygen will reuse the documentation of the first\n# member in the group (if any) for the other members of the group. By default\n# all members of a group must be documented explicitly.\n# The default value is: NO.\n\nDISTRIBUTE_GROUP_DOC   = NO\n\n# Set the SUBGROUPING tag to YES to allow class member groups of the same type\n# (for instance a group of public functions) to be put as a subgroup of that\n# type (e.g. under the Public Functions section). Set it to NO to prevent\n# subgrouping. Alternatively, this can be done per class using the\n# \\nosubgrouping command.\n# The default value is: YES.\n\nSUBGROUPING            = YES\n\n# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions\n# are shown inside the group in which they are included (e.g. using \\ingroup)\n# instead of on a separate page (for HTML and Man pages) or section (for LaTeX\n# and RTF).\n#\n# Note that this feature does not work in combination with\n# SEPARATE_MEMBER_PAGES.\n# The default value is: NO.\n\nINLINE_GROUPED_CLASSES = NO\n\n# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions\n# with only public data fields or simple typedef fields will be shown inline in\n# the documentation of the scope in which they are defined (i.e. file,\n# namespace, or group documentation), provided this scope is documented. If set\n# to NO, structs, classes, and unions are shown on a separate page (for HTML and\n# Man pages) or section (for LaTeX and RTF).\n# The default value is: NO.\n\nINLINE_SIMPLE_STRUCTS  = NO\n\n# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or\n# enum is documented as struct, union, or enum with the name of the typedef. So\n# typedef struct TypeS {} TypeT, will appear in the documentation as a struct\n# with name TypeT. When disabled the typedef will appear as a member of a file,\n# namespace, or class. And the struct will be named TypeS. This can typically be\n# useful for C code in case the coding convention dictates that all compound\n# types are typedef'ed and only the typedef is referenced, never the tag name.\n# The default value is: NO.\n\nTYPEDEF_HIDES_STRUCT   = NO\n\n# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This\n# cache is used to resolve symbols given their name and scope. Since this can be\n# an expensive process and often the same symbol appears multiple times in the\n# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small\n# doxygen will become slower. If the cache is too large, memory is wasted. The\n# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range\n# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536\n# symbols. At the end of a run doxygen will report the cache usage and suggest\n# the optimal cache size from a speed point of view.\n# Minimum value: 0, maximum value: 9, default value: 0.\n\nLOOKUP_CACHE_SIZE      = 0\n\n#---------------------------------------------------------------------------\n# Build related configuration options\n#---------------------------------------------------------------------------\n\n# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in\n# documentation are documented, even if no documentation was available. Private\n# class members and static file members will be hidden unless the\n# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.\n# Note: This will also disable the warnings about undocumented members that are\n# normally produced when WARNINGS is set to YES.\n# The default value is: NO.\n\nEXTRACT_ALL            = YES\n\n# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will\n# be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PRIVATE        = NO\n\n# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal\n# scope will be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PACKAGE        = NO\n\n# If the EXTRACT_STATIC tag is set to YES all static members of a file will be\n# included in the documentation.\n# The default value is: NO.\n\nEXTRACT_STATIC         = YES\n\n# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined\n# locally in source files will be included in the documentation. If set to NO\n# only classes defined in header files are included. Does not have any effect\n# for Java sources.\n# The default value is: YES.\n\nEXTRACT_LOCAL_CLASSES  = NO\n\n# This flag is only useful for Objective-C code. When set to YES local methods,\n# which are defined in the implementation section but not in the interface are\n# included in the documentation. If set to NO only methods in the interface are\n# included.\n# The default value is: NO.\n\nEXTRACT_LOCAL_METHODS  = NO\n\n# If this flag is set to YES, the members of anonymous namespaces will be\n# extracted and appear in the documentation as a namespace called\n# 'anonymous_namespace{file}', where file will be replaced with the base name of\n# the file that contains the anonymous namespace. By default anonymous namespace\n# are hidden.\n# The default value is: NO.\n\nEXTRACT_ANON_NSPACES   = NO\n\n# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all\n# undocumented members inside documented classes or files. If set to NO these\n# members will be included in the various overviews, but no documentation\n# section is generated. This option has no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_MEMBERS     = NO\n\n# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all\n# undocumented classes that are normally visible in the class hierarchy. If set\n# to NO these classes will be included in the various overviews. This option has\n# no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_CLASSES     = NO\n\n# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend\n# (class|struct|union) declarations. If set to NO these declarations will be\n# included in the documentation.\n# The default value is: NO.\n\nHIDE_FRIEND_COMPOUNDS  = NO\n\n# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any\n# documentation blocks found inside the body of a function. If set to NO these\n# blocks will be appended to the function's detailed documentation block.\n# The default value is: NO.\n\nHIDE_IN_BODY_DOCS      = NO\n\n# The INTERNAL_DOCS tag determines if documentation that is typed after a\n# \\internal command is included. If the tag is set to NO then the documentation\n# will be excluded. Set it to YES to include the internal documentation.\n# The default value is: NO.\n\nINTERNAL_DOCS          = YES\n\n# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file\n# names in lower-case letters. If set to YES upper-case letters are also\n# allowed. This is useful if you have classes or files whose names only differ\n# in case and if your file system supports case sensitive file names. Windows\n# and Mac users are advised to set this option to NO.\n# The default value is: system dependent.\n\nCASE_SENSE_NAMES       = NO\n\n# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with\n# their full class and namespace scopes in the documentation. If set to YES the\n# scope will be hidden.\n# The default value is: NO.\n\nHIDE_SCOPE_NAMES       = NO\n\n# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of\n# the files that are included by a file in the documentation of that file.\n# The default value is: YES.\n\nSHOW_INCLUDE_FILES     = YES\n\n# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include\n# files with double quotes in the documentation rather than with sharp brackets.\n# The default value is: NO.\n\nFORCE_LOCAL_INCLUDES   = NO\n\n# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the\n# documentation for inline members.\n# The default value is: YES.\n\nINLINE_INFO            = YES\n\n# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the\n# (detailed) documentation of file and class members alphabetically by member\n# name. If set to NO the members will appear in declaration order.\n# The default value is: YES.\n\nSORT_MEMBER_DOCS       = YES\n\n# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief\n# descriptions of file, namespace and class members alphabetically by member\n# name. If set to NO the members will appear in declaration order.\n# The default value is: NO.\n\nSORT_BRIEF_DOCS        = NO\n\n# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the\n# (brief and detailed) documentation of class members so that constructors and\n# destructors are listed first. If set to NO the constructors will appear in the\n# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.\n# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief\n# member documentation.\n# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting\n# detailed member documentation.\n# The default value is: NO.\n\nSORT_MEMBERS_CTORS_1ST = NO\n\n# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy\n# of group names into alphabetical order. If set to NO the group names will\n# appear in their defined order.\n# The default value is: NO.\n\nSORT_GROUP_NAMES       = NO\n\n# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by\n# fully-qualified names, including namespaces. If set to NO, the class list will\n# be sorted only by class name, not including the namespace part.\n# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.\n# Note: This option applies only to the class list, not to the alphabetical\n# list.\n# The default value is: NO.\n\nSORT_BY_SCOPE_NAME     = YES\n\n# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper\n# type resolution of all parameters of a function it will reject a match between\n# the prototype and the implementation of a member function even if there is\n# only one candidate or it is obvious which candidate to choose by doing a\n# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still\n# accept a match between prototype and implementation in such cases.\n# The default value is: NO.\n\nSTRICT_PROTO_MATCHING  = NO\n\n# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the\n# todo list. This list is created by putting \\todo commands in the\n# documentation.\n# The default value is: YES.\n\nGENERATE_TODOLIST      = YES\n\n# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the\n# test list. This list is created by putting \\test commands in the\n# documentation.\n# The default value is: YES.\n\nGENERATE_TESTLIST      = NO\n\n# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug\n# list. This list is created by putting \\bug commands in the documentation.\n# The default value is: YES.\n\nGENERATE_BUGLIST       = NO\n\n# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO)\n# the deprecated list. This list is created by putting \\deprecated commands in\n# the documentation.\n# The default value is: YES.\n\nGENERATE_DEPRECATEDLIST= YES\n\n# The ENABLED_SECTIONS tag can be used to enable conditional documentation\n# sections, marked by \\if <section_label> ... \\endif and \\cond <section_label>\n# ... \\endcond blocks.\n\nENABLED_SECTIONS       =\n\n# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the\n# initial value of a variable or macro / define can have for it to appear in the\n# documentation. If the initializer consists of more lines than specified here\n# it will be hidden. Use a value of 0 to hide initializers completely. The\n# appearance of the value of individual variables and macros / defines can be\n# controlled using \\showinitializer or \\hideinitializer command in the\n# documentation regardless of this setting.\n# Minimum value: 0, maximum value: 10000, default value: 30.\n\nMAX_INITIALIZER_LINES  = 30\n\n# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at\n# the bottom of the documentation of classes and structs. If set to YES the list\n# will mention the files that were used to generate the documentation.\n# The default value is: YES.\n\nSHOW_USED_FILES        = YES\n\n# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This\n# will remove the Files entry from the Quick Index and from the Folder Tree View\n# (if specified).\n# The default value is: YES.\n\nSHOW_FILES             = YES\n\n# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces\n# page. This will remove the Namespaces entry from the Quick Index and from the\n# Folder Tree View (if specified).\n# The default value is: YES.\n\nSHOW_NAMESPACES        = YES\n\n# The FILE_VERSION_FILTER tag can be used to specify a program or script that\n# doxygen should invoke to get the current version for each file (typically from\n# the version control system). Doxygen will invoke the program by executing (via\n# popen()) the command command input-file, where command is the value of the\n# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided\n# by doxygen. Whatever the program writes to standard output is used as the file\n# version. For an example see the documentation.\n\nFILE_VERSION_FILTER    =\n\n# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed\n# by doxygen. The layout file controls the global structure of the generated\n# output files in an output format independent way. To create the layout file\n# that represents doxygen's defaults, run doxygen with the -l option. You can\n# optionally specify a file name after the option, if omitted DoxygenLayout.xml\n# will be used as the name of the layout file.\n#\n# Note that if you run doxygen from a directory containing a file called\n# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE\n# tag is left empty.\n\nLAYOUT_FILE            =\n\n# The CITE_BIB_FILES tag can be used to specify one or more bib files containing\n# the reference definitions. This must be a list of .bib files. The .bib\n# extension is automatically appended if omitted. This requires the bibtex tool\n# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.\n# For LaTeX the style of the bibliography can be controlled using\n# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the\n# search path. Do not use file names with spaces, bibtex cannot handle them. See\n# also \\cite for info how to create references.\n\nCITE_BIB_FILES         =\n\n#---------------------------------------------------------------------------\n# Configuration options related to warning and progress messages\n#---------------------------------------------------------------------------\n\n# The QUIET tag can be used to turn on/off the messages that are generated to\n# standard output by doxygen. If QUIET is set to YES this implies that the\n# messages are off.\n# The default value is: NO.\n\nQUIET                  = NO\n\n# The WARNINGS tag can be used to turn on/off the warning messages that are\n# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES\n# this implies that the warnings are on.\n#\n# Tip: Turn warnings on while writing the documentation.\n# The default value is: YES.\n\nWARNINGS               = YES\n\n# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate\n# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag\n# will automatically be disabled.\n# The default value is: YES.\n\nWARN_IF_UNDOCUMENTED   = YES\n\n# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for\n# potential errors in the documentation, such as not documenting some parameters\n# in a documented function, or documenting parameters that don't exist or using\n# markup commands wrongly.\n# The default value is: YES.\n\nWARN_IF_DOC_ERROR      = YES\n\n# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that\n# are documented, but have no documentation for their parameters or return\n# value. If set to NO doxygen will only warn about wrong or incomplete parameter\n# documentation, but not about the absence of documentation.\n# The default value is: NO.\n\nWARN_NO_PARAMDOC       = NO\n\n# The WARN_FORMAT tag determines the format of the warning messages that doxygen\n# can produce. The string should contain the $file, $line, and $text tags, which\n# will be replaced by the file and line number from which the warning originated\n# and the warning text. Optionally the format may contain $version, which will\n# be replaced by the version of the file (if it could be obtained via\n# FILE_VERSION_FILTER)\n# The default value is: $file:$line: $text.\n\nWARN_FORMAT            = \"$file:$line: $text\"\n\n# The WARN_LOGFILE tag can be used to specify a file to which warning and error\n# messages should be written. If left blank the output is written to standard\n# error (stderr).\n\nWARN_LOGFILE           = %WARNING_LOG_PATH%\n\n#---------------------------------------------------------------------------\n# Configuration options related to the input files\n#---------------------------------------------------------------------------\n\n# The INPUT tag is used to specify the files and/or directories that contain\n# documented source files. You may enter file names like myfile.cpp or\n# directories like /usr/src/myproject. Separate the files or directories with\n# spaces.\n# Note: If this tag is empty the current directory is searched.\n\nINPUT                  = ../include \\\n                         ../src/lib_json \\\n                         .\n\n# This tag can be used to specify the character encoding of the source files\n# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses\n# libiconv (or the iconv built into libc) for the transcoding. See the libiconv\n# documentation (see: http://www.gnu.org/software/libiconv) for the list of\n# possible encodings.\n# The default value is: UTF-8.\n\nINPUT_ENCODING         = UTF-8\n\n# If the value of the INPUT tag contains directories, you can use the\n# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and\n# *.h) to filter out the source-files in the directories. If left blank the\n# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii,\n# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp,\n# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown,\n# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf,\n# *.qsf, *.as and *.js.\n\nFILE_PATTERNS          = *.h \\\n                         *.cpp \\\n                         *.inl \\\n                         *.dox\n\n# The RECURSIVE tag can be used to specify whether or not subdirectories should\n# be searched for input files as well.\n# The default value is: NO.\n\nRECURSIVE              = YES\n\n# The EXCLUDE tag can be used to specify files and/or directories that should be\n# excluded from the INPUT source files. This way you can easily exclude a\n# subdirectory from a directory tree whose root is specified with the INPUT tag.\n#\n# Note that relative paths are relative to the directory from which doxygen is\n# run.\n\nEXCLUDE                =\n\n# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or\n# directories that are symbolic links (a Unix file system feature) are excluded\n# from the input.\n# The default value is: NO.\n\nEXCLUDE_SYMLINKS       = NO\n\n# If the value of the INPUT tag contains directories, you can use the\n# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude\n# certain files from those directories.\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories for example use the pattern */test/*\n\nEXCLUDE_PATTERNS       =\n\n# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names\n# (namespaces, classes, functions, etc.) that should be excluded from the\n# output. The symbol name can be a fully qualified name, a word, or if the\n# wildcard * is used, a substring. Examples: ANamespace, AClass,\n# AClass::ANamespace, ANamespace::*Test\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories use the pattern */test/*\n\nEXCLUDE_SYMBOLS        =\n\n# The EXAMPLE_PATH tag can be used to specify one or more files or directories\n# that contain example code fragments that are included (see the \\include\n# command).\n\nEXAMPLE_PATH           = ..\n\n# If the value of the EXAMPLE_PATH tag contains directories, you can use the\n# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and\n# *.h) to filter out the source-files in the directories. If left blank all\n# files are included.\n\nEXAMPLE_PATTERNS       = *\n\n# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be\n# searched for input files to be used with the \\include or \\dontinclude commands\n# irrespective of the value of the RECURSIVE tag.\n# The default value is: NO.\n\nEXAMPLE_RECURSIVE      = NO\n\n# The IMAGE_PATH tag can be used to specify one or more files or directories\n# that contain images that are to be included in the documentation (see the\n# \\image command).\n\nIMAGE_PATH             =\n\n# The INPUT_FILTER tag can be used to specify a program that doxygen should\n# invoke to filter for each input file. Doxygen will invoke the filter program\n# by executing (via popen()) the command:\n#\n# <filter> <input-file>\n#\n# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the\n# name of an input file. Doxygen will then use the output that the filter\n# program writes to standard output. If FILTER_PATTERNS is specified, this tag\n# will be ignored.\n#\n# Note that the filter must not add or remove lines; it is applied before the\n# code is scanned, but not when the output code is generated. If lines are added\n# or removed, the anchors will not be placed correctly.\n\nINPUT_FILTER           =\n\n# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern\n# basis. Doxygen will compare the file name with each pattern and apply the\n# filter if there is a match. The filters are a list of the form: pattern=filter\n# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how\n# filters are used. If the FILTER_PATTERNS tag is empty or if none of the\n# patterns match the file name, INPUT_FILTER is applied.\n\nFILTER_PATTERNS        =\n\n# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using\n# INPUT_FILTER ) will also be used to filter the input files that are used for\n# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).\n# The default value is: NO.\n\nFILTER_SOURCE_FILES    = NO\n\n# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file\n# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and\n# it is also possible to disable source filtering for a specific pattern using\n# *.ext= (so without naming a filter).\n# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.\n\nFILTER_SOURCE_PATTERNS =\n\n# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that\n# is part of the input, its contents will be placed on the main page\n# (index.html). This can be useful if you have a project on for instance GitHub\n# and want to reuse the introduction page also for the doxygen output.\n\nUSE_MDFILE_AS_MAINPAGE =\n\n#---------------------------------------------------------------------------\n# Configuration options related to source browsing\n#---------------------------------------------------------------------------\n\n# If the SOURCE_BROWSER tag is set to YES then a list of source files will be\n# generated. Documented entities will be cross-referenced with these sources.\n#\n# Note: To get rid of all source code in the generated output, make sure that\n# also VERBATIM_HEADERS is set to NO.\n# The default value is: NO.\n\nSOURCE_BROWSER         = NO\n\n# Setting the INLINE_SOURCES tag to YES will include the body of functions,\n# classes and enums directly into the documentation.\n# The default value is: NO.\n\nINLINE_SOURCES         = NO\n\n# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any\n# special comment blocks from generated source code fragments. Normal C, C++ and\n# Fortran comments will always remain visible.\n# The default value is: YES.\n\nSTRIP_CODE_COMMENTS    = YES\n\n# If the REFERENCED_BY_RELATION tag is set to YES then for each documented\n# function all documented functions referencing it will be listed.\n# The default value is: NO.\n\nREFERENCED_BY_RELATION = NO\n\n# If the REFERENCES_RELATION tag is set to YES then for each documented function\n# all documented entities called/used by that function will be listed.\n# The default value is: NO.\n\nREFERENCES_RELATION    = NO\n\n# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set\n# to YES, then the hyperlinks from functions in REFERENCES_RELATION and\n# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will\n# link to the documentation.\n# The default value is: YES.\n\nREFERENCES_LINK_SOURCE = YES\n\n# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the\n# source code will show a tooltip with additional information such as prototype,\n# brief description and links to the definition and documentation. Since this\n# will make the HTML file larger and loading of large files a bit slower, you\n# can opt to disable this feature.\n# The default value is: YES.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nSOURCE_TOOLTIPS        = YES\n\n# If the USE_HTAGS tag is set to YES then the references to source code will\n# point to the HTML generated by the htags(1) tool instead of doxygen built-in\n# source browser. The htags tool is part of GNU's global source tagging system\n# (see http://www.gnu.org/software/global/global.html). You will need version\n# 4.8.6 or higher.\n#\n# To use it do the following:\n# - Install the latest version of global\n# - Enable SOURCE_BROWSER and USE_HTAGS in the config file\n# - Make sure the INPUT points to the root of the source tree\n# - Run doxygen as normal\n#\n# Doxygen will invoke htags (and that will in turn invoke gtags), so these\n# tools must be available from the command line (i.e. in the search path).\n#\n# The result: instead of the source browser generated by doxygen, the links to\n# source code will now point to the output of htags.\n# The default value is: NO.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nUSE_HTAGS              = NO\n\n# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a\n# verbatim copy of the header file for each class for which an include is\n# specified. Set to NO to disable this.\n# See also: Section \\class.\n# The default value is: YES.\n\nVERBATIM_HEADERS       = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the alphabetical class index\n#---------------------------------------------------------------------------\n\n# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all\n# compounds will be generated. Enable this if the project contains a lot of\n# classes, structs, unions or interfaces.\n# The default value is: YES.\n\nALPHABETICAL_INDEX     = YES\nTOC_INCLUDE_HEADINGS = 2\n\n# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in\n# which the alphabetical index list will be split.\n# Minimum value: 1, maximum value: 20, default value: 5.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nCOLS_IN_ALPHA_INDEX    = 5\n\n# In case all classes in a project start with a common prefix, all classes will\n# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag\n# can be used to specify a prefix (or a list of prefixes) that should be ignored\n# while generating the index headers.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nIGNORE_PREFIX          =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the HTML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output\n# The default value is: YES.\n\nGENERATE_HTML          = YES\n\n# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_OUTPUT            = %HTML_OUTPUT%\n\n# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each\n# generated HTML page (for example: .htm, .php, .asp).\n# The default value is: .html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FILE_EXTENSION    = .html\n\n# The HTML_HEADER tag can be used to specify a user-defined HTML header file for\n# each generated HTML page. If the tag is left blank doxygen will generate a\n# standard header.\n#\n# To get valid HTML the header file that includes any scripts and style sheets\n# that doxygen needs, which is dependent on the configuration options used (e.g.\n# the setting GENERATE_TREEVIEW). It is highly recommended to start with a\n# default header using\n# doxygen -w html new_header.html new_footer.html new_stylesheet.css\n# YourConfigFile\n# and then modify the file new_header.html. See also section \"Doxygen usage\"\n# for information on how to generate the default header that doxygen normally\n# uses.\n# Note: The header is subject to change so you typically have to regenerate the\n# default header when upgrading to a newer version of doxygen. For a description\n# of the possible markers and block names see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_HEADER            = header.html\n\n# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each\n# generated HTML page. If the tag is left blank doxygen will generate a standard\n# footer. See HTML_HEADER for more information on how to generate a default\n# footer and what special commands can be used inside the footer. See also\n# section \"Doxygen usage\" for information on how to generate the default footer\n# that doxygen normally uses.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FOOTER            = footer.html\n\n# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style\n# sheet that is used by each HTML page. It can be used to fine-tune the look of\n# the HTML output. If left blank doxygen will generate a default style sheet.\n# See also section \"Doxygen usage\" for information on how to generate the style\n# sheet that doxygen normally uses.\n# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as\n# it is more robust and this tag (HTML_STYLESHEET) will in the future become\n# obsolete.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_STYLESHEET        =\n\n# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional user-\n# defined cascading style sheet that is included after the standard style sheets\n# created by doxygen. Using this option one can overrule certain style aspects.\n# This is preferred over using HTML_STYLESHEET since it does not replace the\n# standard style sheet and is therefore more robust against future updates.\n# Doxygen will copy the style sheet file to the output directory. For an example\n# see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_STYLESHEET  =\n\n# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the HTML output directory. Note\n# that these files will be copied to the base HTML output directory. Use the\n# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these\n# files. In the HTML_STYLESHEET file, use the file name only. Also note that the\n# files will be copied as-is; there are no commands or markers available.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_FILES       =\n\n# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen\n# will adjust the colors in the stylesheet and background images according to\n# this color. Hue is specified as an angle on a colorwheel, see\n# http://en.wikipedia.org/wiki/Hue for more information. For instance the value\n# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300\n# purple, and 360 is red again.\n# Minimum value: 0, maximum value: 359, default value: 220.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_HUE    = 220\n\n# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors\n# in the HTML output. For a value of 0 the output will use grayscales only. A\n# value of 255 will produce the most vivid colors.\n# Minimum value: 0, maximum value: 255, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_SAT    = 100\n\n# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the\n# luminance component of the colors in the HTML output. Values below 100\n# gradually make the output lighter, whereas values above 100 make the output\n# darker. The value divided by 100 is the actual gamma applied, so 80 represents\n# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not\n# change the gamma.\n# Minimum value: 40, maximum value: 240, default value: 80.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_GAMMA  = 80\n\n# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML\n# page will contain the date and time when the page was generated. Setting this\n# to NO can help when comparing the output of multiple runs.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_TIMESTAMP         = NO\n\n# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML\n# documentation will contain sections that can be hidden and shown after the\n# page has loaded.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_DYNAMIC_SECTIONS  = YES\n\n# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries\n# shown in the various tree structured indices initially; the user can expand\n# and collapse entries dynamically later on. Doxygen will expand the tree to\n# such a level that at most the specified number of entries are visible (unless\n# a fully collapsed tree already exceeds this amount). So setting the number of\n# entries 1 will produce a full collapsed tree by default. 0 is a special value\n# representing an infinite number of entries and will result in a full expanded\n# tree by default.\n# Minimum value: 0, maximum value: 9999, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_INDEX_NUM_ENTRIES = 100\n\n# If the GENERATE_DOCSET tag is set to YES, additional index files will be\n# generated that can be used as input for Apple's Xcode 3 integrated development\n# environment (see: http://developer.apple.com/tools/xcode/), introduced with\n# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a\n# Makefile in the HTML output directory. Running make will produce the docset in\n# that directory and running make install will install the docset in\n# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at\n# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html\n# for more information.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_DOCSET        = NO\n\n# This tag determines the name of the docset feed. A documentation feed provides\n# an umbrella under which multiple documentation sets from a single provider\n# (such as a company or product suite) can be grouped.\n# The default value is: Doxygen generated docs.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_FEEDNAME        = \"Doxygen generated docs\"\n\n# This tag specifies a string that should uniquely identify the documentation\n# set bundle. This should be a reverse domain-name style string, e.g.\n# com.mycompany.MyDocSet. Doxygen will append .docset to the name.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_BUNDLE_ID       = org.doxygen.Project\n\n# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify\n# the documentation publisher. This should be a reverse domain-name style\n# string, e.g. com.mycompany.MyDocSet.documentation.\n# The default value is: org.doxygen.Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_ID    = org.doxygen.Publisher\n\n# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.\n# The default value is: Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_NAME  = Publisher\n\n# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three\n# additional HTML index files: index.hhp, index.hhc, and index.hhk. The\n# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop\n# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on\n# Windows.\n#\n# The HTML Help Workshop contains a compiler that can convert all HTML output\n# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML\n# files are now used as the Windows 98 help format, and will replace the old\n# Windows help format (.hlp) on all Windows platforms in the future. Compressed\n# HTML files also contain an index, a table of contents, and you can search for\n# words in the documentation. The HTML workshop also contains a viewer for\n# compressed HTML files.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_HTMLHELP      = %HTML_HELP%\n\n# The CHM_FILE tag can be used to specify the file name of the resulting .chm\n# file. You can add a path in front of the file if the result should not be\n# written to the html output directory.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_FILE               = jsoncpp-%JSONCPP_VERSION%.chm\n\n# The HHC_LOCATION tag can be used to specify the location (absolute path\n# including file name) of the HTML help compiler ( hhc.exe). If non-empty\n# doxygen will try to run the HTML help compiler on the generated index.hhp.\n# The file has to be specified with full path.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nHHC_LOCATION           = \"c:\\Program Files\\HTML Help Workshop\\hhc.exe\"\n\n# The GENERATE_CHI flag controls if a separate .chi index file is generated (\n# YES) or that it should be included in the master .chm file ( NO).\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nGENERATE_CHI           = YES\n\n# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc)\n# and project file content.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_INDEX_ENCODING     =\n\n# The BINARY_TOC flag controls whether a binary table of contents is generated (\n# YES) or a normal table of contents ( NO) in the .chm file.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nBINARY_TOC             = YES\n\n# The TOC_EXPAND flag can be set to YES to add extra items for group members to\n# the table of contents of the HTML help documentation and to the tree view.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nTOC_EXPAND             = YES\n\n# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and\n# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that\n# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help\n# (.qch) of the generated HTML documentation.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_QHP           = NO\n\n# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify\n# the file name of the resulting .qch file. The path specified is relative to\n# the HTML output folder.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQCH_FILE               =\n\n# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help\n# Project output. For more information please see Qt Help Project / Namespace\n# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_NAMESPACE          =\n\n# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt\n# Help Project output. For more information please see Qt Help Project / Virtual\n# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-\n# folders).\n# The default value is: doc.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_VIRTUAL_FOLDER     = doc\n\n# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom\n# filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_NAME   =\n\n# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the\n# custom filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_ATTRS  =\n\n# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this\n# project's filter section matches. Qt Help Project / Filter Attributes (see:\n# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_SECT_FILTER_ATTRS  =\n\n# The QHG_LOCATION tag can be used to specify the location of Qt's\n# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the\n# generated .qhp file.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHG_LOCATION           =\n\n# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be\n# generated, together with the HTML files, they form an Eclipse help plugin. To\n# install this plugin and make it available under the help contents menu in\n# Eclipse, the contents of the directory containing the HTML and XML files needs\n# to be copied into the plugins directory of eclipse. The name of the directory\n# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.\n# After copying Eclipse needs to be restarted before the help appears.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_ECLIPSEHELP   = NO\n\n# A unique identifier for the Eclipse help plugin. When installing the plugin\n# the directory name containing the HTML and XML files should also have this\n# name. Each documentation set should have its own identifier.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.\n\nECLIPSE_DOC_ID         = org.doxygen.Project\n\n# If you want full control over the layout of the generated HTML pages it might\n# be necessary to disable the index and replace it with your own. The\n# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top\n# of each HTML page. A value of NO enables the index and the value YES disables\n# it. Since the tabs in the index contain the same information as the navigation\n# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nDISABLE_INDEX          = NO\n\n# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index\n# structure should be generated to display hierarchical information. If the tag\n# value is set to YES, a side panel will be generated containing a tree-like\n# index structure (just like the one that is generated for HTML Help). For this\n# to work a browser that supports JavaScript, DHTML, CSS and frames is required\n# (i.e. any modern browser). Windows users are probably better off using the\n# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can\n# further fine-tune the look of the index. As an example, the default style\n# sheet generated by doxygen has an example that shows how to put an image at\n# the root of the tree instead of the PROJECT_NAME. Since the tree basically has\n# the same information as the tab index, you could consider setting\n# DISABLE_INDEX to YES when enabling this option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_TREEVIEW      = YES\n\n# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that\n# doxygen will group on one line in the generated HTML documentation.\n#\n# Note that a value of 0 will completely suppress the enum values from appearing\n# in the overview section.\n# Minimum value: 0, maximum value: 20, default value: 4.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nENUM_VALUES_PER_LINE   = 4\n\n# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used\n# to set the initial width (in pixels) of the frame in which the tree is shown.\n# Minimum value: 0, maximum value: 1500, default value: 250.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nTREEVIEW_WIDTH         = 250\n\n# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to\n# external symbols imported via tag files in a separate window.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nEXT_LINKS_IN_WINDOW    = NO\n\n# Use this tag to change the font size of LaTeX formulas included as images in\n# the HTML documentation. When you change the font size after a successful\n# doxygen run you need to manually remove any form_*.png images from the HTML\n# output directory to force them to be regenerated.\n# Minimum value: 8, maximum value: 50, default value: 10.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_FONTSIZE       = 10\n\n# Use the FORMULA_TRANPARENT tag to determine whether or not the images\n# generated for formulas are transparent PNGs. Transparent PNGs are not\n# supported properly for IE 6.0, but are supported on all modern browsers.\n#\n# Note that when changing this option you need to delete any form_*.png files in\n# the HTML output directory before the changes have effect.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_TRANSPARENT    = YES\n\n# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see\n# http://www.mathjax.org) which uses client side JavaScript for the rendering\n# instead of using prerendered bitmaps. Use this if you do not have LaTeX\n# installed or if you want to formulas look prettier in the HTML output. When\n# enabled you may also need to install MathJax separately and configure the path\n# to it using the MATHJAX_RELPATH option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nUSE_MATHJAX            = NO\n\n# When MathJax is enabled you can set the default output format to be used for\n# the MathJax output. See the MathJax site (see:\n# http://docs.mathjax.org/en/latest/output.html) for more details.\n# Possible values are: HTML-CSS (which is slower, but has the best\n# compatibility), NativeMML (i.e. MathML) and SVG.\n# The default value is: HTML-CSS.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_FORMAT         = HTML-CSS\n\n# When MathJax is enabled you need to specify the location relative to the HTML\n# output directory using the MATHJAX_RELPATH option. The destination directory\n# should contain the MathJax.js script. For instance, if the mathjax directory\n# is located at the same level as the HTML output directory, then\n# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax\n# Content Delivery Network so you can quickly see the result without installing\n# MathJax. However, it is strongly recommended to install a local copy of\n# MathJax from http://www.mathjax.org before deployment.\n# The default value is: http://cdn.mathjax.org/mathjax/latest.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest\n\n# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax\n# extension names that should be enabled during MathJax rendering. For example\n# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_EXTENSIONS     =\n\n# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces\n# of code that will be used on startup of the MathJax code. See the MathJax site\n# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an\n# example see the documentation.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_CODEFILE       =\n\n# When the SEARCHENGINE tag is enabled doxygen will generate a search box for\n# the HTML output. The underlying search engine uses javascript and DHTML and\n# should work on any modern browser. Note that when using HTML help\n# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)\n# there is already a search function so this one should typically be disabled.\n# For large projects the javascript based search engine can be slow, then\n# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to\n# search using the keyboard; to jump to the search box use <access key> + S\n# (what the <access key> is depends on the OS and browser, but it is typically\n# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down\n# key> to jump into the search results window, the results can be navigated\n# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel\n# the search. The filter options can be selected when the cursor is inside the\n# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>\n# to select a filter and <Enter> or <escape> to activate or cancel the filter\n# option.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nSEARCHENGINE           = NO\n\n# When the SERVER_BASED_SEARCH tag is enabled the search engine will be\n# implemented using a web server instead of a web client using JavaScript. There\n# are two flavours of web server based searching depending on the\n# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for\n# searching and an index file used by the script. When EXTERNAL_SEARCH is\n# enabled the indexing and searching needs to be provided by external tools. See\n# the section \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSERVER_BASED_SEARCH    = NO\n\n# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP\n# script for searching. Instead the search results are written to an XML file\n# which needs to be processed by an external indexer. Doxygen will invoke an\n# external search engine pointed to by the SEARCHENGINE_URL option to obtain the\n# search results.\n#\n# Doxygen ships with an example indexer ( doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/).\n#\n# See the section \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH        = NO\n\n# The SEARCHENGINE_URL should point to a search engine hosted by a web server\n# which will return the search results when EXTERNAL_SEARCH is enabled.\n#\n# Doxygen ships with an example indexer ( doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/). See the section \"External Indexing and\n# Searching\" for details.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHENGINE_URL       =\n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed\n# search data is written to a file for indexing by an external tool. With the\n# SEARCHDATA_FILE tag the name of this file can be specified.\n# The default file is: searchdata.xml.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHDATA_FILE        = searchdata.xml\n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the\n# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is\n# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple\n# projects and redirect the results back to the right project.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH_ID     =\n\n# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen\n# projects other than the one defined by this configuration file, but that are\n# all added to the same external search index. Each project needs to have a\n# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of\n# to a relative location where the documentation can be found. The format is:\n# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTRA_SEARCH_MAPPINGS  =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the LaTeX output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_LATEX tag is set to YES doxygen will generate LaTeX output.\n# The default value is: YES.\n\nGENERATE_LATEX         = NO\n\n# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_OUTPUT           = latex\n\n# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be\n# invoked.\n#\n# Note that when enabling USE_PDFLATEX this option is only used for generating\n# bitmaps for formulas in the HTML output, but not in the Makefile that is\n# written to the output directory.\n# The default file is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_CMD_NAME         = latex\n\n# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate\n# index for LaTeX.\n# The default file is: makeindex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nMAKEINDEX_CMD_NAME     = makeindex\n\n# If the COMPACT_LATEX tag is set to YES doxygen generates more compact LaTeX\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nCOMPACT_LATEX          = NO\n\n# The PAPER_TYPE tag can be used to set the paper type that is used by the\n# printer.\n# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x\n# 14 inches) and executive (7.25 x 10.5 inches).\n# The default value is: a4.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPAPER_TYPE             = a4wide\n\n# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names\n# that should be included in the LaTeX output. To get the times font for\n# instance you can specify\n# EXTRA_PACKAGES=times\n# If left blank no extra packages will be included.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nEXTRA_PACKAGES         =\n\n# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the\n# generated LaTeX document. The header should contain everything until the first\n# chapter. If it is left blank doxygen will generate a standard header. See\n# section \"Doxygen usage\" for information on how to let doxygen write the\n# default header to a separate file.\n#\n# Note: Only use a user-defined header if you know what you are doing! The\n# following commands have a special meaning inside the header: $title,\n# $datetime, $date, $doxygenversion, $projectname, $projectnumber. Doxygen will\n# replace them by respectively the title of the page, the current date and time,\n# only the current date, the version number of doxygen, the project name (see\n# PROJECT_NAME), or the project number (see PROJECT_NUMBER).\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HEADER           =\n\n# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the\n# generated LaTeX document. The footer should contain everything after the last\n# chapter. If it is left blank doxygen will generate a standard footer.\n#\n# Note: Only use a user-defined footer if you know what you are doing!\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_FOOTER           =\n\n# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the LATEX_OUTPUT output\n# directory. Note that the files will be copied as-is; there are no commands or\n# markers available.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_EXTRA_FILES      =\n\n# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is\n# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will\n# contain links (just like the HTML output) instead of page references. This\n# makes the output suitable for online browsing using a PDF viewer.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPDF_HYPERLINKS         = NO\n\n# If the LATEX_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate\n# the PDF file directly from the LaTeX files. Set this option to YES to get a\n# higher quality PDF documentation.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nUSE_PDFLATEX           = NO\n\n# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode\n# command to the generated LaTeX files. This will instruct LaTeX to keep running\n# if errors occur, instead of asking the user for help. This option is also used\n# when generating formulas in HTML.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BATCHMODE        = NO\n\n# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the\n# index chapters (such as File Index, Compound Index, etc.) in the output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HIDE_INDICES     = NO\n\n# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source\n# code with syntax highlighting in the LaTeX output.\n#\n# Note that which sources are shown also depends on other settings such as\n# SOURCE_BROWSER.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_SOURCE_CODE      = NO\n\n# The LATEX_BIB_STYLE tag can be used to specify the style to use for the\n# bibliography, e.g. plainnat, or ieeetr. See\n# http://en.wikipedia.org/wiki/BibTeX and \\cite for more info.\n# The default value is: plain.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BIB_STYLE        = plain\n\n#---------------------------------------------------------------------------\n# Configuration options related to the RTF output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_RTF tag is set to YES doxygen will generate RTF output. The\n# RTF output is optimized for Word 97 and may not look too pretty with other RTF\n# readers/editors.\n# The default value is: NO.\n\nGENERATE_RTF           = NO\n\n# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: rtf.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_OUTPUT             = rtf\n\n# If the COMPACT_RTF tag is set to YES doxygen generates more compact RTF\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nCOMPACT_RTF            = NO\n\n# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will\n# contain hyperlink fields. The RTF file will contain links (just like the HTML\n# output) instead of page references. This makes the output suitable for online\n# browsing using Word or some other Word compatible readers that support those\n# fields.\n#\n# Note: WordPad (write) and others do not support links.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_HYPERLINKS         = NO\n\n# Load stylesheet definitions from file. Syntax is similar to doxygen's config\n# file, i.e. a series of assignments. You only have to provide replacements,\n# missing definitions are set to their default value.\n#\n# See also section \"Doxygen usage\" for information on how to generate the\n# default style sheet that doxygen normally uses.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_STYLESHEET_FILE    =\n\n# Set optional variables used in the generation of an RTF document. Syntax is\n# similar to doxygen's config file. A template extensions file can be generated\n# using doxygen -e rtf extensionFile.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_EXTENSIONS_FILE    =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the man page output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_MAN tag is set to YES doxygen will generate man pages for\n# classes and files.\n# The default value is: NO.\n\nGENERATE_MAN           = NO\n\n# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it. A directory man3 will be created inside the directory specified by\n# MAN_OUTPUT.\n# The default directory is: man.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_OUTPUT             = man\n\n# The MAN_EXTENSION tag determines the extension that is added to the generated\n# man pages. In case the manual section does not start with a number, the number\n# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is\n# optional.\n# The default value is: .3.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_EXTENSION          = .3\n\n# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it\n# will generate one additional man file for each entity documented in the real\n# man page(s). These additional files only source the real man page, but without\n# them the man command would be unable to find the correct page.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_LINKS              = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the XML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_XML tag is set to YES doxygen will generate an XML file that\n# captures the structure of the code including all documentation.\n# The default value is: NO.\n\nGENERATE_XML           = NO\n\n# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: xml.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_OUTPUT             = xml\n\n# If the XML_PROGRAMLISTING tag is set to YES doxygen will dump the program\n# listings (including syntax highlighting and cross-referencing information) to\n# the XML output. Note that enabling this will significantly increase the size\n# of the XML output.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_PROGRAMLISTING     = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to the DOCBOOK output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_DOCBOOK tag is set to YES doxygen will generate Docbook files\n# that can be used to generate PDF.\n# The default value is: NO.\n\nGENERATE_DOCBOOK       = NO\n\n# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.\n# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in\n# front of it.\n# The default directory is: docbook.\n# This tag requires that the tag GENERATE_DOCBOOK is set to YES.\n\nDOCBOOK_OUTPUT         = docbook\n\n#---------------------------------------------------------------------------\n# Configuration options for the AutoGen Definitions output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_AUTOGEN_DEF tag is set to YES doxygen will generate an AutoGen\n# Definitions (see http://autogen.sf.net) file that captures the structure of\n# the code including all documentation. Note that this feature is still\n# experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_AUTOGEN_DEF   = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the Perl module output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_PERLMOD tag is set to YES doxygen will generate a Perl module\n# file that captures the structure of the code including all documentation.\n#\n# Note that this feature is still experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_PERLMOD       = NO\n\n# If the PERLMOD_LATEX tag is set to YES doxygen will generate the necessary\n# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI\n# output from the Perl module output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_LATEX          = NO\n\n# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be nicely\n# formatted so it can be parsed by a human reader. This is useful if you want to\n# understand what is going on. On the other hand, if this tag is set to NO the\n# size of the Perl module output will be much smaller and Perl will parse it\n# just the same.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_PRETTY         = YES\n\n# The names of the make variables in the generated doxyrules.make file are\n# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful\n# so different doxyrules.make files included by the same Makefile don't\n# overwrite each other's variables.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_MAKEVAR_PREFIX =\n\n#---------------------------------------------------------------------------\n# Configuration options related to the preprocessor\n#---------------------------------------------------------------------------\n\n# If the ENABLE_PREPROCESSING tag is set to YES doxygen will evaluate all\n# C-preprocessor directives found in the sources and include files.\n# The default value is: YES.\n\nENABLE_PREPROCESSING   = YES\n\n# If the MACRO_EXPANSION tag is set to YES doxygen will expand all macro names\n# in the source code. If set to NO only conditional compilation will be\n# performed. Macro expansion can be done in a controlled way by setting\n# EXPAND_ONLY_PREDEF to YES.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nMACRO_EXPANSION        = YES\n\n# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then\n# the macro expansion is limited to the macros specified with the PREDEFINED and\n# EXPAND_AS_DEFINED tags.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_ONLY_PREDEF     = NO\n\n# If the SEARCH_INCLUDES tag is set to YES the includes files in the\n# INCLUDE_PATH will be searched if a #include is found.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSEARCH_INCLUDES        = YES\n\n# The INCLUDE_PATH tag can be used to specify one or more directories that\n# contain include files that are not input files but should be processed by the\n# preprocessor.\n# This tag requires that the tag SEARCH_INCLUDES is set to YES.\n\nINCLUDE_PATH           = ../include\n\n# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard\n# patterns (like *.h and *.hpp) to filter out the header-files in the\n# directories. If left blank, the patterns specified with FILE_PATTERNS will be\n# used.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nINCLUDE_FILE_PATTERNS  = *.h\n\n# The PREDEFINED tag can be used to specify one or more macro names that are\n# defined before the preprocessor is started (similar to the -D option of e.g.\n# gcc). The argument of the tag is a list of macros of the form: name or\n# name=definition (no spaces). If the definition and the \"=\" are omitted, \"=1\"\n# is assumed. To prevent a macro definition from being undefined via #undef or\n# recursively expanded use the := operator instead of the = operator.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nPREDEFINED             = \"_MSC_VER=1800\" \\\n                         _CPPRTTI \\\n                         _WIN32 \\\n                         JSONCPP_DOC_EXCLUDE_IMPLEMENTATION\n\n# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this\n# tag can be used to specify a list of macro names that should be expanded. The\n# macro definition that is found in the sources will be used. Use the PREDEFINED\n# tag if you want to use a different macro definition that overrules the\n# definition found in the source code.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_AS_DEFINED      =\n\n# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will\n# remove all references to function-like macros that are alone on a line, have an\n# all uppercase name, and do not end with a semicolon. Such function macros are\n# typically used for boiler-plate code, and will confuse the parser if not\n# removed.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSKIP_FUNCTION_MACROS   = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to external references\n#---------------------------------------------------------------------------\n\n# The TAGFILES tag can be used to specify one or more tag files. For each tag\n# file the location of the external documentation should be added. The format of\n# a tag file without this location is as follows:\n# TAGFILES = file1 file2 ...\n# Adding location for the tag files is done as follows:\n# TAGFILES = file1=loc1 \"file2 = loc2\" ...\n# where loc1 and loc2 can be relative or absolute paths or URLs. See the\n# section \"Linking to external documentation\" for more information about the use\n# of tag files.\n# Note: Each tag file must have an unique name (where the name does NOT include\n# the path). If a tag file is not located in the directory in which doxygen is\n# run, you must also specify the path to the tagfile here.\n\nTAGFILES               =\n\n# When a file name is specified after GENERATE_TAGFILE, doxygen will create a\n# tag file that is based on the input files it reads. See section \"Linking to\n# external documentation\" for more information about the usage of tag files.\n\nGENERATE_TAGFILE       =\n\n# If the ALLEXTERNALS tag is set to YES all external class will be listed in the\n# class index. If set to NO only the inherited external classes will be listed.\n# The default value is: NO.\n\nALLEXTERNALS           = NO\n\n# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed in\n# the modules index. If set to NO, only the current project's groups will be\n# listed.\n# The default value is: YES.\n\nEXTERNAL_GROUPS        = YES\n\n# If the EXTERNAL_PAGES tag is set to YES all external pages will be listed in\n# the related pages index. If set to NO, only the current project's pages will\n# be listed.\n# The default value is: YES.\n\nEXTERNAL_PAGES         = YES\n\n# The PERL_PATH should be the absolute path and name of the perl script\n# interpreter (i.e. the result of 'which perl').\n# The default file (with absolute path) is: /usr/bin/perl.\n\nPERL_PATH              = /usr/bin/perl\n\n#---------------------------------------------------------------------------\n# Configuration options related to the dot tool\n#---------------------------------------------------------------------------\n\n# If the CLASS_DIAGRAMS tag is set to YES doxygen will generate a class diagram\n# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to\n# NO turns the diagrams off. Note that this option also works with HAVE_DOT\n# disabled, but it is recommended to install and use dot, since it yields more\n# powerful graphs.\n# The default value is: YES.\n\nCLASS_DIAGRAMS         = NO\n\n# You can define message sequence charts within doxygen comments using the \\msc\n# command. Doxygen will then run the mscgen tool (see:\n# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the\n# documentation. The MSCGEN_PATH tag allows you to specify the directory where\n# the mscgen tool resides. If left empty the tool is assumed to be found in the\n# default search path.\n\nMSCGEN_PATH            =\n\n# If set to YES, the inheritance and collaboration graphs will hide inheritance\n# and usage relations if the target is undocumented or is not a class.\n# The default value is: YES.\n\nHIDE_UNDOC_RELATIONS   = NO\n\n# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is\n# available from the path. This tool is part of Graphviz (see:\n# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent\n# Bell Labs. The other options in this section have no effect if this option is\n# set to NO\n# The default value is: NO.\n\nHAVE_DOT               = %HAVE_DOT%\n\n# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed\n# to run in parallel. When set to 0 doxygen will base this on the number of\n# processors available in the system. You can set it explicitly to a value\n# larger than 0 to get control over the balance between CPU load and processing\n# speed.\n# Minimum value: 0, maximum value: 32, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_NUM_THREADS        = 0\n\n# When you want a differently looking font n the dot files that doxygen\n# generates you can specify the font name using DOT_FONTNAME. You need to make\n# sure dot is able to find the font, which can be done by putting it in a\n# standard location or by setting the DOTFONTPATH environment variable or by\n# setting DOT_FONTPATH to the directory containing the font.\n# The default value is: Helvetica.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTNAME           = FreeSans\n\n# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of\n# dot graphs.\n# Minimum value: 4, maximum value: 24, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTSIZE           = 10\n\n# By default doxygen will tell dot to use the default font as specified with\n# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set\n# the path where dot can find it using this tag.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTPATH           =\n\n# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for\n# each documented class showing the direct and indirect inheritance relations.\n# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCLASS_GRAPH            = YES\n\n# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a\n# graph for each documented class showing the direct and indirect implementation\n# dependencies (inheritance, containment, and class references variables) of the\n# class with other documented classes.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCOLLABORATION_GRAPH    = YES\n\n# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for\n# groups, showing the direct groups dependencies.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGROUP_GRAPHS           = YES\n\n# If the UML_LOOK tag is set to YES doxygen will generate inheritance and\n# collaboration diagrams in a style similar to the OMG's Unified Modeling\n# Language.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LOOK               = %UML_LOOK%\n\n# If the UML_LOOK tag is enabled, the fields and methods are shown inside the\n# class node. If there are many fields or methods and many nodes the graph may\n# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the\n# number of items for each type to make the size more manageable. Set this to 0\n# for no limit. Note that the threshold may be exceeded by 50% before the limit\n# is enforced. So when you set the threshold to 10, up to 15 fields may appear,\n# but if the number exceeds 15, the total amount of fields shown is limited to\n# 10.\n# Minimum value: 0, maximum value: 100, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LIMIT_NUM_FIELDS   = 10\n\n# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and\n# collaboration graphs will show the relations between templates and their\n# instances.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nTEMPLATE_RELATIONS     = YES\n\n# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to\n# YES then doxygen will generate a graph for each documented file showing the\n# direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDE_GRAPH          = YES\n\n# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are\n# set to YES then doxygen will generate a graph for each documented file showing\n# the direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDED_BY_GRAPH      = YES\n\n# If the CALL_GRAPH tag is set to YES then doxygen will generate a call\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable call graphs for selected\n# functions only using the \\callgraph command.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALL_GRAPH             = NO\n\n# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable caller graphs for selected\n# functions only using the \\callergraph command.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALLER_GRAPH           = YES\n\n# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical\n# hierarchy of all classes instead of a textual one.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGRAPHICAL_HIERARCHY    = YES\n\n# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the\n# dependencies a directory has on other directories in a graphical way. The\n# dependency relations are determined by the #include relations between the\n# files in the directories.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDIRECTORY_GRAPH        = YES\n\n# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images\n# generated by dot.\n# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order\n# to make the SVG files visible in IE 9+ (other browsers do not have this\n# requirement).\n# Possible values are: png, jpg, gif and svg.\n# The default value is: png.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_IMAGE_FORMAT       = png\n\n# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to\n# enable generation of interactive SVG images that allow zooming and panning.\n#\n# Note that this requires a modern browser other than Internet Explorer. Tested\n# and working are Firefox, Chrome, Safari, and Opera.\n# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make\n# the SVG files visible. Older versions of IE do not have SVG support.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINTERACTIVE_SVG        = NO\n\n# The DOT_PATH tag can be used to specify the path where the dot tool can be\n# found. If left blank, it is assumed the dot tool can be found in the path.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_PATH               = %DOT_PATH%\n\n# The DOTFILE_DIRS tag can be used to specify one or more directories that\n# contain dot files that are included in the documentation (see the \\dotfile\n# command).\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOTFILE_DIRS           =\n\n# The MSCFILE_DIRS tag can be used to specify one or more directories that\n# contain msc files that are included in the documentation (see the \\mscfile\n# command).\n\nMSCFILE_DIRS           =\n\n# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes\n# that will be shown in the graph. If the number of nodes in a graph becomes\n# larger than this value, doxygen will truncate the graph, which is visualized\n# by representing a node as a red box. Note that doxygen if the number of direct\n# children of the root node in a graph is already larger than\n# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that\n# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.\n# Minimum value: 0, maximum value: 10000, default value: 50.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_GRAPH_MAX_NODES    = 50\n\n# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs\n# generated by dot. A depth value of 3 means that only nodes reachable from the\n# root by following a path via at most 3 edges will be shown. Nodes that lay\n# further from the root node will be omitted. Note that setting this option to 1\n# or 2 may greatly reduce the computation time needed for large code bases. Also\n# note that the size of a graph can be further restricted by\n# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.\n# Minimum value: 0, maximum value: 1000, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nMAX_DOT_GRAPH_DEPTH    = 1000\n\n# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent\n# background. This is disabled by default, because dot on Windows does not seem\n# to support this out of the box.\n#\n# Warning: Depending on the platform used, enabling this option may lead to\n# badly anti-aliased labels on the edges of a graph (i.e. they become hard to\n# read).\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_TRANSPARENT        = NO\n\n# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output\n# files in one run (i.e. multiple -o and -T options on the command line). This\n# makes dot run faster, but since only newer versions of dot (>1.8.10) support\n# this, this feature is disabled by default.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_MULTI_TARGETS      = YES\n\n# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page\n# explaining the meaning of the various boxes and arrows in the dot generated\n# graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGENERATE_LEGEND        = YES\n\n# If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot\n# files that are used to generate the various graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_CLEANUP            = YES\n"
  },
  {
    "path": "doxybuild.py",
    "content": "\"\"\"Script to generate doxygen documentation.\n\"\"\"\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\nfrom devtools import tarball\nfrom contextlib import contextmanager\nimport subprocess\nimport traceback\nimport re\nimport os\nimport sys\nimport shutil\n\n@contextmanager\ndef cd(newdir):\n    \"\"\"\n    http://stackoverflow.com/questions/431684/how-do-i-cd-in-python\n    \"\"\"\n    prevdir = os.getcwd()\n    os.chdir(newdir)\n    try:\n        yield\n    finally:\n        os.chdir(prevdir)\n\ndef find_program(*filenames):\n    \"\"\"find a program in folders path_lst, and sets env[var]\n    @param filenames: a list of possible names of the program to search for\n    @return: the full path of the filename if found, or '' if filename could not be found\n\"\"\"\n    paths = os.environ.get('PATH', '').split(os.pathsep)\n    suffixes = ('win32' in sys.platform) and '.exe .com .bat .cmd' or ''\n    for filename in filenames:\n        for name in [filename+ext for ext in suffixes.split(' ')]:\n            for directory in paths:\n                full_path = os.path.join(directory, name)\n                if os.path.isfile(full_path):\n                    return full_path\n    return ''\n\ndef do_subst_in_file(targetfile, sourcefile, dict):\n    \"\"\"Replace all instances of the keys of dict with their values.\n    For example, if dict is {'%VERSION%': '1.2345', '%BASE%': 'MyProg'},\n    then all instances of %VERSION% in the file will be replaced with 1.2345 etc.\n    \"\"\"\n    with open(sourcefile, 'r') as f:\n        contents = f.read()\n    for (k,v) in list(dict.items()):\n        v = v.replace('\\\\','\\\\\\\\')\n        contents = re.sub(k, v, contents)\n    with open(targetfile, 'w') as f:\n        f.write(contents)\n\ndef getstatusoutput(cmd):\n    \"\"\"cmd is a list.\n    \"\"\"\n    try:\n        process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n        output, _ = process.communicate()\n        status = process.returncode\n    except:\n        status = -1\n        output = traceback.format_exc()\n    return status, output\n\ndef run_cmd(cmd, silent=False):\n    \"\"\"Raise exception on failure.\n    \"\"\"\n    info = 'Running: %r in %r' %(' '.join(cmd), os.getcwd())\n    print(info)\n    sys.stdout.flush()\n    if silent:\n        status, output = getstatusoutput(cmd)\n    else:\n        status, output = subprocess.call(cmd), ''\n    if status:\n        msg = 'Error while %s ...\\n\\terror=%d, output=\"\"\"%s\"\"\"' %(info, status, output)\n        raise Exception(msg)\n\ndef assert_is_exe(path):\n    if not path:\n        raise Exception('path is empty.')\n    if not os.path.isfile(path):\n        raise Exception('%r is not a file.' %path)\n    if not os.access(path, os.X_OK):\n        raise Exception('%r is not executable by this user.' %path)\n\ndef run_doxygen(doxygen_path, config_file, working_dir, is_silent):\n    assert_is_exe(doxygen_path)\n    config_file = os.path.abspath(config_file)\n    with cd(working_dir):\n        cmd = [doxygen_path, config_file]\n        run_cmd(cmd, is_silent)\n\ndef build_doc(options,  make_release=False):\n    if make_release:\n        options.make_tarball = True\n        options.with_dot = True\n        options.with_html_help = True\n        options.with_uml_look = True\n        options.open = False\n        options.silent = True\n\n    version = open('version', 'rt').read().strip()\n    output_dir = 'dist/doxygen' # relative to doc/doxyfile location.\n    if not os.path.isdir(output_dir):\n        os.makedirs(output_dir)\n    top_dir = os.path.abspath('.')\n    html_output_dirname = 'jsoncpp-api-html-' + version\n    tarball_path = os.path.join('dist', html_output_dirname + '.tar.gz')\n    warning_log_path = os.path.join(output_dir, '../jsoncpp-doxygen-warning.log')\n    html_output_path = os.path.join(output_dir, html_output_dirname)\n    def yesno(bool):\n        return bool and 'YES' or 'NO'\n    subst_keys = {\n        '%JSONCPP_VERSION%': version,\n        '%DOC_TOPDIR%': '',\n        '%TOPDIR%': top_dir,\n        '%HTML_OUTPUT%': os.path.join('..', output_dir, html_output_dirname),\n        '%HAVE_DOT%': yesno(options.with_dot),\n        '%DOT_PATH%': os.path.split(options.dot_path)[0],\n        '%HTML_HELP%': yesno(options.with_html_help),\n        '%UML_LOOK%': yesno(options.with_uml_look),\n        '%WARNING_LOG_PATH%': os.path.join('..', warning_log_path)\n        }\n\n    if os.path.isdir(output_dir):\n        print('Deleting directory:', output_dir)\n        shutil.rmtree(output_dir)\n    if not os.path.isdir(output_dir):\n        os.makedirs(output_dir)\n\n    do_subst_in_file('doc/doxyfile', options.doxyfile_input_path, subst_keys)\n    run_doxygen(options.doxygen_path, 'doc/doxyfile', 'doc', is_silent=options.silent)\n    if not options.silent:\n        print(open(warning_log_path, 'r').read())\n    index_path = os.path.abspath(os.path.join('doc', subst_keys['%HTML_OUTPUT%'], 'index.html'))\n    print('Generated documentation can be found in:')\n    print(index_path)\n    if options.open:\n        import webbrowser\n        webbrowser.open('file://' + index_path)\n    if options.make_tarball:\n        print('Generating doc tarball to', tarball_path)\n        tarball_sources = [\n            output_dir,\n            'README.md',\n            'LICENSE',\n            'NEWS.txt',\n            'version'\n            ]\n        tarball_basedir = os.path.join(output_dir, html_output_dirname)\n        tarball.make_tarball(tarball_path, tarball_sources, tarball_basedir, html_output_dirname)\n    return tarball_path, html_output_dirname\n\ndef main():\n    usage = \"\"\"%prog\n    Generates doxygen documentation in build/doxygen.\n    Optionally makes a tarball of the documentation to dist/.\n\n    Must be started in the project top directory.\n    \"\"\"\n    from optparse import OptionParser\n    parser = OptionParser(usage=usage)\n    parser.allow_interspersed_args = False\n    parser.add_option('--with-dot', dest=\"with_dot\", action='store_true', default=False,\n        help=\"\"\"Enable usage of DOT to generate collaboration diagram\"\"\")\n    parser.add_option('--dot', dest=\"dot_path\", action='store', default=find_program('dot'),\n        help=\"\"\"Path to GraphViz dot tool. Must be full qualified path. [Default: %default]\"\"\")\n    parser.add_option('--doxygen', dest=\"doxygen_path\", action='store', default=find_program('doxygen'),\n        help=\"\"\"Path to Doxygen tool. [Default: %default]\"\"\")\n    parser.add_option('--in', dest=\"doxyfile_input_path\", action='store', default='doc/doxyfile.in',\n        help=\"\"\"Path to doxygen inputs. [Default: %default]\"\"\")\n    parser.add_option('--with-html-help', dest=\"with_html_help\", action='store_true', default=False,\n        help=\"\"\"Enable generation of Microsoft HTML HELP\"\"\")\n    parser.add_option('--no-uml-look', dest=\"with_uml_look\", action='store_false', default=True,\n        help=\"\"\"Generates DOT graph without UML look [Default: False]\"\"\")\n    parser.add_option('--open', dest=\"open\", action='store_true', default=False,\n        help=\"\"\"Open the HTML index in the web browser after generation\"\"\")\n    parser.add_option('--tarball', dest=\"make_tarball\", action='store_true', default=False,\n        help=\"\"\"Generates a tarball of the documentation in dist/ directory\"\"\")\n    parser.add_option('-s', '--silent', dest=\"silent\", action='store_true', default=False,\n        help=\"\"\"Hides doxygen output\"\"\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n    build_doc(options)\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "example/BUILD.bazel",
    "content": "load(\"@rules_cc//cc:cc_binary.bzl\", \"cc_binary\")\n\ncc_binary(\n    name = \"readFromStream_ok\",\n    srcs = [\"readFromStream/readFromStream.cpp\"],\n    args = [\"$(location :readFromStream/withComment.json)\"],\n    data = [\"readFromStream/withComment.json\"],\n    deps = [\"//:jsoncpp\"],\n)\n\ncc_binary(\n    name = \"readFromStream_err\",\n    srcs = [\"readFromStream/readFromStream.cpp\"],\n    args = [\"$(location :readFromStream/errorFormat.json)\"],\n    data = [\"readFromStream/errorFormat.json\"],\n    deps = [\"//:jsoncpp\"],\n)\n\ncc_binary(\n    name = \"readFromString\",\n    srcs = [\"readFromString/readFromString.cpp\"],\n    deps = [\"//:jsoncpp\"],\n)\n\ncc_binary(\n    name = \"streamWrite\",\n    srcs = [\"streamWrite/streamWrite.cpp\"],\n    deps = [\"//:jsoncpp\"],\n)\n\ncc_binary(\n    name = \"stringWrite\",\n    srcs = [\"stringWrite/stringWrite.cpp\"],\n    deps = [\"//:jsoncpp\"],\n)\n"
  },
  {
    "path": "example/CMakeLists.txt",
    "content": "#vim: et ts =4 sts = 4 sw = 4 tw = 0\nset(EXAMPLES\n    readFromString\n    readFromStream\n    stringWrite\n    streamWrite\n)\nadd_definitions(-D_GLIBCXX_USE_CXX11_ABI)\n\nif(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" OR CMAKE_CXX_COMPILER_ID STREQUAL \"Clang\")\n    add_compile_options(-Wall -Wextra)\nelseif(CMAKE_CXX_COMPILER_ID STREQUAL \"MSVC\")\n    add_definitions(\n        -D_SCL_SECURE_NO_WARNINGS\n        -D_CRT_SECURE_NO_WARNINGS\n        -D_WIN32_WINNT=0x601\n        -D_WINSOCK_DEPRECATED_NO_WARNINGS\n    )\nendif()\n\nforeach(example ${EXAMPLES})\n    add_executable(${example} ${example}/${example}.cpp)\n    target_include_directories(${example} PUBLIC ${CMAKE_SOURCE_DIR}/include)\n    target_link_libraries(${example} jsoncpp_lib)\nendforeach()\n\nadd_custom_target(examples ALL DEPENDS ${EXAMPLES})\n"
  },
  {
    "path": "example/README.md",
    "content": "***NOTE***\n\nIf you get linker errors about undefined references to symbols that involve types in the `std::__cxx11` namespace or the tag\n`[abi:cxx11]` then it probably indicates that you are trying to link together object files that were compiled with different\nvalues for the _GLIBCXX_USE_CXX11_ABI marco. This commonly happens when linking to a third-party library that was compiled with\nan older version of GCC. If the third-party library cannot be rebuilt with the new ABI, then you need to recompile your code with\nthe old ABI,just like:\n**g++ stringWrite.cpp -ljsoncpp -std=c++11 -D_GLIBCXX_USE_CXX11_ABI=0 -o stringWrite**\n\nNot all of uses of the new ABI will cause changes in symbol names, for example a class with a `std::string` member variable will\nhave the same mangled name whether compiled with the older or new ABI. In order to detect such problems, the new types and functions\nare annotated with the abi_tag attribute, allowing the compiler to warn about potential ABI incompatibilities in code using them.\nThose warnings can be enabled with the `-Wabi-tag` option.\n"
  },
  {
    "path": "example/readFromStream/errorFormat.json",
    "content": "{\n    1: \"value\"\n}"
  },
  {
    "path": "example/readFromStream/readFromStream.cpp",
    "content": "#include \"json/json.h\"\n#include <fstream>\n#include <iostream>\n/** \\brief Parse from stream, collect comments and capture error info.\n * Example Usage:\n * $g++ readFromStream.cpp -ljsoncpp -std=c++11 -o readFromStream\n * $./readFromStream\n * // comment head\n * {\n *    // comment before\n *    \"key\" : \"value\"\n * }\n * // comment after\n * // comment tail\n */\nint main(int argc, char* argv[]) {\n  Json::Value root;\n  std::ifstream ifs;\n  ifs.open(argv[1]);\n\n  Json::CharReaderBuilder builder;\n  builder[\"collectComments\"] = true;\n  JSONCPP_STRING errs;\n  if (!parseFromStream(builder, ifs, &root, &errs)) {\n    std::cout << errs << std::endl;\n    return EXIT_FAILURE;\n  }\n  std::cout << root << std::endl;\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "example/readFromStream/withComment.json",
    "content": "// comment head\n{\n    // comment before\n    \"key\" : \"value\"\n    // comment after\n}// comment tail\n"
  },
  {
    "path": "example/readFromString/readFromString.cpp",
    "content": "#include \"json/json.h\"\n#include <iostream>\n#include <memory>\n/**\n * \\brief Parse a raw string into Value object using the CharReaderBuilder\n * class, or the legacy Reader class.\n * Example Usage:\n * $g++ readFromString.cpp -ljsoncpp -std=c++11 -o readFromString\n * $./readFromString\n * colin\n * 20\n */\nint main() {\n  const std::string rawJson = R\"({\"Age\": 20, \"Name\": \"colin\"})\";\n  const auto rawJsonLength = static_cast<int>(rawJson.length());\n  constexpr bool shouldUseOldWay = false;\n  JSONCPP_STRING err;\n  Json::Value root;\n\n  if (shouldUseOldWay) {\n    Json::Reader reader;\n    reader.parse(rawJson, root);\n  } else {\n    Json::CharReaderBuilder builder;\n    const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());\n    if (!reader->parse(rawJson.c_str(), rawJson.c_str() + rawJsonLength, &root,\n                       &err)) {\n      std::cout << \"error: \" << err << std::endl;\n      return EXIT_FAILURE;\n    }\n  }\n  const std::string name = root[\"Name\"].asString();\n  const int age = root[\"Age\"].asInt();\n\n  std::cout << name << std::endl;\n  std::cout << age << std::endl;\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "example/streamWrite/streamWrite.cpp",
    "content": "#include \"json/json.h\"\n#include <iostream>\n#include <memory>\n/** \\brief Write the Value object to a stream.\n * Example Usage:\n * $g++ streamWrite.cpp -ljsoncpp -std=c++11 -o streamWrite\n * $./streamWrite\n * {\n *     \"Age\" : 20,\n *     \"Name\" : \"robin\"\n * }\n */\nint main() {\n  Json::Value root;\n  Json::StreamWriterBuilder builder;\n  const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter());\n\n  root[\"Name\"] = \"robin\";\n  root[\"Age\"] = 20;\n  writer->write(root, &std::cout);\n\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "example/stringWrite/stringWrite.cpp",
    "content": "#include \"json/json.h\"\n#include <iostream>\n/** \\brief Write a Value object to a string.\n * Example Usage:\n * $g++ stringWrite.cpp -ljsoncpp -std=c++11 -o stringWrite\n * $./stringWrite\n * {\n *     \"action\" : \"run\",\n *     \"data\" :\n *     {\n *         \"number\" : 1\n *     }\n * }\n */\nint main() {\n  Json::Value root;\n  Json::Value data;\n  constexpr bool shouldUseOldWay = false;\n  root[\"action\"] = \"run\";\n  data[\"number\"] = 1;\n  root[\"data\"] = data;\n\n  if (shouldUseOldWay) {\n    Json::FastWriter writer;\n    const std::string json_file = writer.write(root);\n    std::cout << json_file << std::endl;\n  } else {\n    Json::StreamWriterBuilder builder;\n    const std::string json_file = Json::writeString(builder, root);\n    std::cout << json_file << std::endl;\n  }\n  return EXIT_SUCCESS;\n}\n"
  },
  {
    "path": "gcovr.cfg",
    "content": "# Newer versions of gcovr have strict function merging by default, which\n# can cause issues with header-only functions or macros (like in jsontest.h).\n# 'separate' mode keeps them distinct, fixing the GcovrMergeAssertionError.\nmerge-mode-functions = separate\n\n# --- Filtering ---\n# Only include the library sources in the coverage report.\n# This ensures coverage stats reflect the library quality and ignores test code.\nfilter = src/lib_json/\nfilter = include/json/\n\n# --- Noise Reduction ---\n# Ignore branches that are generated by the compiler (e.g., exception handling)\n# This drastically reduces \"false positives\" for missing branch coverage.\nexclude-throw-branches = yes\n\n# --- CI Visibility ---\n# Print a small summary table to the console logs.\nprint-summary = yes\n"
  },
  {
    "path": "get_version.pl",
    "content": "while (<>) {\n\tif (/version : '(.+)',/) {\n\t\tprint \"$1\";\n\t}\n}\n"
  },
  {
    "path": "include/CMakeLists.txt",
    "content": "if (JSONCPP_WITH_INSTALL)\n\nfile(GLOB INCLUDE_FILES \"json/*.h\")\ninstall(FILES\n    ${INCLUDE_FILES}\n    DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/json)\n\nendif()"
  },
  {
    "path": "include/PreventInBuildInstalls.cmake",
    "content": "string(TOLOWER \"${CMAKE_INSTALL_PREFIX}\" _PREFIX)\nstring(TOLOWER \"${ITK_BINARY_DIR}\" _BUILD)\nif(\"${_PREFIX}\" STREQUAL \"${_BUILD}\")\n  message(FATAL_ERROR\n    \"The current CMAKE_INSTALL_PREFIX points at the build tree:\\n\"\n    \"  ${CMAKE_INSTALL_PREFIX}\\n\"\n    \"This is not supported.\"\n    )\nendif()\n"
  },
  {
    "path": "include/PreventInSourceBuilds.cmake",
    "content": "#\n# This function will prevent in-source builds\nfunction(AssureOutOfSourceBuilds)\n  # make sure the user doesn't play dirty with symlinks\n  get_filename_component(srcdir \"${CMAKE_CURRENT_SOURCE_DIR}\" REALPATH)\n  get_filename_component(bindir \"${CMAKE_CURRENT_BINARY_DIR}\" REALPATH)\n\n  # disallow in-source builds\n  if(\"${srcdir}\" STREQUAL \"${bindir}\")\n    message(\"######################################################\")\n    message(\"# jsoncpp should not be configured & built in the jsoncpp source directory\")\n    message(\"# You must run cmake in a build directory.\")\n    message(\"# For example:\")\n    message(\"# mkdir jsoncpp-Sandbox ; cd jsoncpp-sandbox\")\n    message(\"# git clone https://github.com/open-source-parsers/jsoncpp.git # or download & unpack the source tarball\")\n    message(\"# mkdir jsoncpp-build\")\n    message(\"# this will create the following directory structure\")\n    message(\"#\")\n    message(\"# jsoncpp-Sandbox\")\n    message(\"#  +--jsoncpp\")\n    message(\"#  +--jsoncpp-build\")\n    message(\"#\")\n    message(\"# Then you can proceed to configure and build\")\n    message(\"# by using the following commands\")\n    message(\"#\")\n    message(\"# cd jsoncpp-build\")\n    message(\"# cmake ../jsoncpp # or ccmake, or cmake-gui \")\n    message(\"# make\")\n    message(\"#\")\n    message(\"# NOTE: Given that you already tried to make an in-source build\")\n    message(\"#       CMake have already created several files & directories\")\n    message(\"#       in your source tree. run 'git status' to find them and\")\n    message(\"#       remove them by doing:\")\n    message(\"#\")\n    message(\"#       cd jsoncpp-Sandbox/jsoncpp\")\n    message(\"#       git clean -n -d\")\n    message(\"#       git clean -f -d\")\n    message(\"#       git checkout --\")\n    message(\"#\")\n    message(\"######################################################\")\n    message(FATAL_ERROR \"Quitting configuration\")\n  endif()\nendfunction()\n\nAssureOutOfSourceBuilds()\n"
  },
  {
    "path": "include/json/allocator.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_ALLOCATOR_H_INCLUDED\n#define JSON_ALLOCATOR_H_INCLUDED\n\n#include <algorithm>\n#include <cstring>\n#include <memory>\n\n#pragma pack(push)\n#pragma pack()\n\nnamespace Json {\ntemplate <typename T> class SecureAllocator {\npublic:\n  // Type definitions\n  using value_type = T;\n  using pointer = T*;\n  using const_pointer = const T*;\n  using reference = T&;\n  using const_reference = const T&;\n  using size_type = std::size_t;\n  using difference_type = std::ptrdiff_t;\n\n  /**\n   * Allocate memory for N items using the standard allocator.\n   */\n  pointer allocate(size_type n) {\n    // allocate using \"global operator new\"\n    return static_cast<pointer>(::operator new(n * sizeof(T)));\n  }\n\n  /**\n   * Release memory which was allocated for N items at pointer P.\n   *\n   * The memory block is filled with zeroes before being released.\n   */\n  void deallocate(pointer p, size_type n) {\n    // These constructs will not be removed by the compiler during optimization,\n    // unlike memset.\n#if defined(HAVE_MEMSET_S)\n    memset_s(p, n * sizeof(T), 0, n * sizeof(T));\n#elif defined(_WIN32)\n    RtlSecureZeroMemory(p, n * sizeof(T));\n#else\n    std::fill_n(reinterpret_cast<volatile unsigned char*>(p), n, 0);\n#endif\n\n    // free using \"global operator delete\"\n    ::operator delete(p);\n  }\n\n  /**\n   * Construct an item in-place at pointer P.\n   */\n  template <typename... Args> void construct(pointer p, Args&&... args) {\n    // construct using \"placement new\" and \"perfect forwarding\"\n    ::new (static_cast<void*>(p)) T(std::forward<Args>(args)...);\n  }\n\n  size_type max_size() const { return size_t(-1) / sizeof(T); }\n\n  pointer address(reference x) const { return std::addressof(x); }\n\n  const_pointer address(const_reference x) const { return std::addressof(x); }\n\n  /**\n   * Destroy an item in-place at pointer P.\n   */\n  void destroy(pointer p) {\n    // destroy using \"explicit destructor\"\n    p->~T();\n  }\n\n  // Boilerplate\n  SecureAllocator() {}\n  template <typename U> SecureAllocator(const SecureAllocator<U>&) {}\n  template <typename U> struct rebind {\n    using other = SecureAllocator<U>;\n  };\n};\n\ntemplate <typename T, typename U>\nbool operator==(const SecureAllocator<T>&, const SecureAllocator<U>&) {\n  return true;\n}\n\ntemplate <typename T, typename U>\nbool operator!=(const SecureAllocator<T>&, const SecureAllocator<U>&) {\n  return false;\n}\n\n} // namespace Json\n\n#pragma pack(pop)\n\n#endif // JSON_ALLOCATOR_H_INCLUDED\n"
  },
  {
    "path": "include/json/assertions.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_ASSERTIONS_H_INCLUDED\n#define JSON_ASSERTIONS_H_INCLUDED\n\n#include <cstdlib>\n#include <sstream>\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"config.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\n/** It should not be possible for a maliciously designed file to\n *  cause an abort() or seg-fault, so these macros are used only\n *  for pre-condition violations and internal logic errors.\n */\n#if JSON_USE_EXCEPTION\n\n// @todo <= add detail about condition in exception\n#define JSON_ASSERT(condition)                                                 \\\n  do {                                                                         \\\n    if (!(condition)) {                                                        \\\n      Json::throwLogicError(\"assert json failed\");                             \\\n    }                                                                          \\\n  } while (0)\n\n#define JSON_FAIL_MESSAGE(message)                                             \\\n  do {                                                                         \\\n    OStringStream oss;                                                         \\\n    oss << message;                                                            \\\n    Json::throwLogicError(oss.str());                                          \\\n    abort();                                                                   \\\n  } while (0)\n\n#else // JSON_USE_EXCEPTION\n\n#define JSON_ASSERT(condition) assert(condition)\n\n// The call to assert() will show the failure message in debug builds. In\n// release builds we abort, for a core-dump or debugger.\n#define JSON_FAIL_MESSAGE(message)                                             \\\n  {                                                                            \\\n    OStringStream oss;                                                         \\\n    oss << message;                                                            \\\n    assert(false && oss.str().c_str());                                        \\\n    abort();                                                                   \\\n  }\n\n#endif\n\n#define JSON_ASSERT_MESSAGE(condition, message)                                \\\n  do {                                                                         \\\n    if (!(condition)) {                                                        \\\n      JSON_FAIL_MESSAGE(message);                                              \\\n    }                                                                          \\\n  } while (0)\n\n#endif // JSON_ASSERTIONS_H_INCLUDED\n"
  },
  {
    "path": "include/json/config.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_CONFIG_H_INCLUDED\n#define JSON_CONFIG_H_INCLUDED\n#include <cstddef>\n#include <cstdint>\n#include <istream>\n#include <memory>\n#include <ostream>\n#include <sstream>\n#include <string>\n#include <type_traits>\n\n// If non-zero, the library uses exceptions to report bad input instead of C\n// assertion macros. The default is to use exceptions.\n#ifndef JSON_USE_EXCEPTION\n#define JSON_USE_EXCEPTION 1\n#endif\n\n// Temporary, tracked for removal with issue #982.\n#ifndef JSON_USE_NULLREF\n#define JSON_USE_NULLREF 1\n#endif\n\n/// If defined, indicates that the source file is amalgamated\n/// to prevent private header inclusion.\n/// Remarks: it is automatically defined in the generated amalgamated header.\n// #define JSON_IS_AMALGAMATION\n\n// Export macros for DLL visibility\n#if defined(JSON_DLL_BUILD)\n#if defined(_MSC_VER) || defined(__MINGW32__)\n#define JSON_API __declspec(dllexport)\n#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING\n#elif defined(__GNUC__) || defined(__clang__)\n#define JSON_API __attribute__((visibility(\"default\")))\n#endif // if defined(_MSC_VER)\n\n#elif defined(JSON_DLL)\n#if defined(_MSC_VER) || defined(__MINGW32__)\n#define JSON_API __declspec(dllimport)\n#define JSONCPP_DISABLE_DLL_INTERFACE_WARNING\n#endif // if defined(_MSC_VER)\n#endif // ifdef JSON_DLL_BUILD\n\n#if !defined(JSON_API)\n#define JSON_API\n#endif\n\n#if defined(_MSC_VER) && _MSC_VER < 1800\n#error                                                                         \\\n    \"ERROR:  Visual Studio 12 (2013) with _MSC_VER=1800 is the oldest supported compiler with sufficient C++11 capabilities\"\n#endif\n\n#if defined(_MSC_VER) && _MSC_VER < 1900\n// As recommended at\n// https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010\nextern JSON_API int msvc_pre1900_c99_snprintf(char* outBuf, size_t size,\n                                              const char* format, ...);\n#define jsoncpp_snprintf msvc_pre1900_c99_snprintf\n#else\n#define jsoncpp_snprintf std::snprintf\n#endif\n\n// If JSON_NO_INT64 is defined, then Json only support C++ \"int\" type for\n// integer\n// Storages, and 64 bits integer support is disabled.\n// #define JSON_NO_INT64 1\n\n// JSONCPP_OVERRIDE is maintained for backwards compatibility of external tools.\n// C++11 should be used directly in JSONCPP.\n#define JSONCPP_OVERRIDE override\n\n#ifdef __clang__\n#if __has_extension(attribute_deprecated_with_message)\n#define JSONCPP_DEPRECATED(message) __attribute__((deprecated(message)))\n#endif\n#elif defined(__GNUC__) // not clang (gcc comes later since clang emulates gcc)\n#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5))\n#define JSONCPP_DEPRECATED(message) __attribute__((deprecated(message)))\n#elif (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))\n#define JSONCPP_DEPRECATED(message) __attribute__((__deprecated__))\n#endif                  // GNUC version\n#elif defined(_MSC_VER) // MSVC (after clang because clang on Windows emulates\n                        // MSVC)\n#define JSONCPP_DEPRECATED(message) __declspec(deprecated(message))\n#endif // __clang__ || __GNUC__ || _MSC_VER\n\n#if !defined(JSONCPP_DEPRECATED)\n#define JSONCPP_DEPRECATED(message)\n#endif // if !defined(JSONCPP_DEPRECATED)\n\n#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 6))\n#define JSON_USE_INT64_DOUBLE_CONVERSION 1\n#endif\n\n#if !defined(JSON_IS_AMALGAMATION)\n\n#include \"allocator.h\"\n#include \"version.h\"\n\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\nnamespace Json {\nusing Int = int;\nusing UInt = unsigned int;\n#if defined(JSON_NO_INT64)\nusing LargestInt = int;\nusing LargestUInt = unsigned int;\n#undef JSON_HAS_INT64\n#else                 // if defined(JSON_NO_INT64)\n// For Microsoft Visual use specific types as long long is not supported\n#if defined(_MSC_VER) // Microsoft Visual Studio\nusing Int64 = __int64;\nusing UInt64 = unsigned __int64;\n#else                 // if defined(_MSC_VER) // Other platforms, use long long\nusing Int64 = int64_t;\nusing UInt64 = uint64_t;\n#endif                // if defined(_MSC_VER)\nusing LargestInt = Int64;\nusing LargestUInt = UInt64;\n#define JSON_HAS_INT64\n#endif // if defined(JSON_NO_INT64)\n\ntemplate <typename T>\nusing Allocator =\n    typename std::conditional<JSONCPP_USE_SECURE_MEMORY, SecureAllocator<T>,\n                              std::allocator<T>>::type;\nusing String = std::basic_string<char, std::char_traits<char>, Allocator<char>>;\nusing IStringStream =\n    std::basic_istringstream<String::value_type, String::traits_type,\n                             String::allocator_type>;\nusing OStringStream =\n    std::basic_ostringstream<String::value_type, String::traits_type,\n                             String::allocator_type>;\nusing IStream = std::istream;\nusing OStream = std::ostream;\n} // namespace Json\n\n// Legacy names (formerly macros).\nusing JSONCPP_STRING = Json::String;\nusing JSONCPP_ISTRINGSTREAM = Json::IStringStream;\nusing JSONCPP_OSTRINGSTREAM = Json::OStringStream;\nusing JSONCPP_ISTREAM = Json::IStream;\nusing JSONCPP_OSTREAM = Json::OStream;\n\n#endif // JSON_CONFIG_H_INCLUDED\n"
  },
  {
    "path": "include/json/forwards.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_FORWARDS_H_INCLUDED\n#define JSON_FORWARDS_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"config.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\nnamespace Json {\n\n// writer.h\nclass StreamWriter;\nclass StreamWriterBuilder;\nclass Writer;\nclass FastWriter;\nclass StyledWriter;\nclass StyledStreamWriter;\n\n// reader.h\nclass Reader;\nclass CharReader;\nclass CharReaderBuilder;\n\n// json_features.h\nclass Features;\n\n// value.h\nusing ArrayIndex = unsigned int;\nclass StaticString;\nclass Path;\nclass PathArgument;\nclass Value;\nclass ValueIteratorBase;\nclass ValueIterator;\nclass ValueConstIterator;\n\n} // namespace Json\n\n#endif // JSON_FORWARDS_H_INCLUDED\n"
  },
  {
    "path": "include/json/json.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_JSON_H_INCLUDED\n#define JSON_JSON_H_INCLUDED\n\n#include \"config.h\"\n#include \"json_features.h\"\n#include \"reader.h\"\n#include \"value.h\"\n#include \"writer.h\"\n\n#endif // JSON_JSON_H_INCLUDED\n"
  },
  {
    "path": "include/json/json_features.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_FEATURES_H_INCLUDED\n#define JSON_FEATURES_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"forwards.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\n#pragma pack(push)\n#pragma pack()\n\nnamespace Json {\n\n/** \\brief Configuration passed to reader and writer.\n * This configuration object can be used to force the Reader or Writer\n * to behave in a standard conforming way.\n */\nclass JSON_API Features {\npublic:\n  /** \\brief A configuration that allows all features and assumes all strings\n   * are UTF-8.\n   * - C & C++ comments are allowed\n   * - Root object can be any JSON value\n   * - Assumes Value strings are encoded in UTF-8\n   */\n  static Features all();\n\n  /** \\brief A configuration that is strictly compatible with the JSON\n   * specification.\n   * - Comments are forbidden.\n   * - Root object must be either an array or an object value.\n   * - Assumes Value strings are encoded in UTF-8\n   */\n  static Features strictMode();\n\n  /** \\brief Initialize the configuration like JsonConfig::allFeatures;\n   */\n  Features();\n\n  /// \\c true if comments are allowed. Default: \\c true.\n  bool allowComments_{true};\n\n  /// \\c true if root must be either an array or an object value. Default: \\c\n  /// false.\n  bool strictRoot_{false};\n\n  /// \\c true if dropped null placeholders are allowed. Default: \\c false.\n  bool allowDroppedNullPlaceholders_{false};\n\n  /// \\c true if numeric object key are allowed. Default: \\c false.\n  bool allowNumericKeys_{false};\n};\n\n} // namespace Json\n\n#pragma pack(pop)\n\n#endif // JSON_FEATURES_H_INCLUDED\n"
  },
  {
    "path": "include/json/reader.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_READER_H_INCLUDED\n#define JSON_READER_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"json_features.h\"\n#include \"value.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n#include <deque>\n#include <iosfwd>\n#include <istream>\n#include <stack>\n#include <string>\n\n// Disable warning C4251: <data member>: <type> needs to have dll-interface to\n// be used by...\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n#pragma warning(push)\n#pragma warning(disable : 4251)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#pragma pack(push)\n#pragma pack()\n\nnamespace Json {\n\n/** \\brief Unserialize a <a HREF=\"http://www.json.org\">JSON</a> document into a\n * Value.\n *\n * \\deprecated Use CharReader and CharReaderBuilder.\n */\n\nclass JSON_API Reader {\npublic:\n  using Char = char;\n  using Location = const Char*;\n\n  /** \\brief An error tagged with where in the JSON text it was encountered.\n   *\n   * The offsets give the [start, limit) range of bytes within the text. Note\n   * that this is bytes, not codepoints.\n   */\n  struct StructuredError {\n    ptrdiff_t offset_start;\n    ptrdiff_t offset_limit;\n    String message;\n  };\n\n  /** \\brief Constructs a Reader allowing all features for parsing.\n   * \\deprecated Use CharReader and CharReaderBuilder.\n   */\n  Reader();\n\n  /** \\brief Constructs a Reader allowing the specified feature set for parsing.\n   * \\deprecated Use CharReader and CharReaderBuilder.\n   */\n  Reader(const Features& features);\n\n  /** \\brief Read a Value from a <a HREF=\"http://www.json.org\">JSON</a>\n   * document.\n   *\n   * \\param      document        UTF-8 encoded string containing the document\n   *                             to read.\n   * \\param[out] root            Contains the root value of the document if it\n   *                             was successfully parsed.\n   * \\param      collectComments \\c true to collect comment and allow writing\n   *                             them back during serialization, \\c false to\n   *                             discard comments.  This parameter is ignored\n   *                             if Features::allowComments_ is \\c false.\n   * \\return \\c true if the document was successfully parsed, \\c false if an\n   * error occurred.\n   */\n  bool parse(const std::string& document, Value& root,\n             bool collectComments = true);\n\n  /** \\brief Read a Value from a <a HREF=\"http://www.json.org\">JSON</a>\n   * document.\n   *\n   * \\param      beginDoc        Pointer on the beginning of the UTF-8 encoded\n   *                             string of the document to read. The pointed-to\n   *                             buffer must outlive this Reader if error\n   *                             methods (e.g. getFormattedErrorMessages()) are\n   *                             called after parse() returns.\n   * \\param      endDoc          Pointer on the end of the UTF-8 encoded string\n   *                             of the document to read.  Must be >= beginDoc.\n   * \\param[out] root            Contains the root value of the document if it\n   *                             was successfully parsed.\n   * \\param      collectComments \\c true to collect comment and allow writing\n   *                             them back during serialization, \\c false to\n   *                             discard comments.  This parameter is ignored\n   *                             if Features::allowComments_ is \\c false.\n   * \\return \\c true if the document was successfully parsed, \\c false if an\n   * error occurred.\n   */\n  bool parse(const char* beginDoc, const char* endDoc, Value& root,\n             bool collectComments = true);\n\n  /// \\brief Parse from input stream.\n  /// \\see Json::operator>>(std::istream&, Json::Value&).\n  bool parse(IStream& is, Value& root, bool collectComments = true);\n\n  /** \\brief Returns a user friendly string that list errors in the parsed\n   * document.\n   *\n   * \\return Formatted error message with the list of errors with their\n   * location in the parsed document. An empty string is returned if no error\n   * occurred during parsing.\n   * \\deprecated Use getFormattedErrorMessages() instead (typo fix).\n   */\n  JSONCPP_DEPRECATED(\"Use getFormattedErrorMessages() instead.\")\n  String getFormatedErrorMessages() const;\n\n  /** \\brief Returns a user friendly string that list errors in the parsed\n   * document.\n   *\n   * \\return Formatted error message with the list of errors with their\n   * location in the parsed document. An empty string is returned if no error\n   * occurred during parsing.\n   */\n  String getFormattedErrorMessages() const;\n\n  /** \\brief Returns a vector of structured errors encountered while parsing.\n   *\n   * \\return A (possibly empty) vector of StructuredError objects. Currently\n   * only one error can be returned, but the caller should tolerate multiple\n   * errors.  This can occur if the parser recovers from a non-fatal parse\n   * error and then encounters additional errors.\n   */\n  std::vector<StructuredError> getStructuredErrors() const;\n\n  /** \\brief Add a semantic error message.\n   *\n   * \\param value   JSON Value location associated with the error\n   * \\param message The error message.\n   * \\return \\c true if the error was successfully added, \\c false if the Value\n   * offset exceeds the document size.\n   */\n  bool pushError(const Value& value, const String& message);\n\n  /** \\brief Add a semantic error message with extra context.\n   *\n   * \\param value   JSON Value location associated with the error\n   * \\param message The error message.\n   * \\param extra   Additional JSON Value location to contextualize the error\n   * \\return \\c true if the error was successfully added, \\c false if either\n   * Value offset exceeds the document size.\n   */\n  bool pushError(const Value& value, const String& message, const Value& extra);\n\n  /** \\brief Return whether there are any errors.\n   *\n   * \\return \\c true if there are no errors to report \\c false if errors have\n   * occurred.\n   */\n  bool good() const;\n\nprivate:\n  enum TokenType {\n    tokenEndOfStream = 0,\n    tokenObjectBegin,\n    tokenObjectEnd,\n    tokenArrayBegin,\n    tokenArrayEnd,\n    tokenString,\n    tokenNumber,\n    tokenTrue,\n    tokenFalse,\n    tokenNull,\n    tokenArraySeparator,\n    tokenMemberSeparator,\n    tokenComment,\n    tokenError\n  };\n\n  class Token {\n  public:\n    TokenType type_;\n    Location start_;\n    Location end_;\n  };\n\n  class ErrorInfo {\n  public:\n    Token token_;\n    String message_;\n    Location extra_;\n  };\n\n  using Errors = std::deque<ErrorInfo>;\n\n  bool readToken(Token& token);\n  bool readTokenSkippingComments(Token& token);\n  void skipSpaces();\n  bool match(const Char* pattern, int patternLength);\n  bool readComment();\n  bool readCStyleComment();\n  bool readCppStyleComment();\n  bool readString();\n  void readNumber();\n  bool readValue();\n  bool readObject(Token& token);\n  bool readArray(Token& token);\n  bool decodeNumber(Token& token);\n  bool decodeNumber(Token& token, Value& decoded);\n  bool decodeString(Token& token);\n  bool decodeString(Token& token, String& decoded);\n  bool decodeDouble(Token& token);\n  bool decodeDouble(Token& token, Value& decoded);\n  bool decodeUnicodeCodePoint(Token& token, Location& current, Location end,\n                              unsigned int& unicode);\n  bool decodeUnicodeEscapeSequence(Token& token, Location& current,\n                                   Location end, unsigned int& unicode);\n  bool addError(const String& message, Token& token, Location extra = nullptr);\n  bool recoverFromError(TokenType skipUntilToken);\n  bool addErrorAndRecover(const String& message, Token& token,\n                          TokenType skipUntilToken);\n  void skipUntilSpace();\n  Value& currentValue();\n  Char getNextChar();\n  void getLocationLineAndColumn(Location location, int& line,\n                                int& column) const;\n  String getLocationLineAndColumn(Location location) const;\n  void addComment(Location begin, Location end, CommentPlacement placement);\n\n  static bool containsNewLine(Location begin, Location end);\n  static String normalizeEOL(Location begin, Location end);\n\n  using Nodes = std::stack<Value*>;\n  Nodes nodes_;\n  Errors errors_;\n  String document_;\n  Location begin_{};\n  Location end_{};\n  Location current_{};\n  Location lastValueEnd_{};\n  Value* lastValue_{};\n  String commentsBefore_;\n  Features features_;\n  bool collectComments_{};\n}; // Reader\n\n/** Interface for reading JSON from a char array.\n */\nclass JSON_API CharReader {\npublic:\n  struct JSON_API StructuredError {\n    ptrdiff_t offset_start;\n    ptrdiff_t offset_limit;\n    String message;\n  };\n\n  virtual ~CharReader() = default;\n  /** \\brief Read a Value from a <a HREF=\"http://www.json.org\">JSON</a>\n   * document. The document must be a UTF-8 encoded string containing the\n   * document to read.\n   *\n   * \\param      beginDoc Pointer on the beginning of the UTF-8 encoded string\n   *                      of the document to read.\n   * \\param      endDoc   Pointer on the end of the UTF-8 encoded string of the\n   *                      document to read. Must be >= beginDoc.\n   * \\param[out] root     Contains the root value of the document if it was\n   *                      successfully parsed.\n   * \\param[out] errs     Formatted error messages (if not NULL) a user\n   *                      friendly string that lists errors in the parsed\n   *                      document.\n   * \\return \\c true if the document was successfully parsed, \\c false if an\n   * error occurred.\n   */\n  virtual bool parse(char const* beginDoc, char const* endDoc, Value* root,\n                     String* errs);\n\n  /** \\brief Returns a vector of structured errors encountered while parsing.\n   * Each parse call resets the stored list of errors.\n   */\n  std::vector<StructuredError> getStructuredErrors() const;\n\n  class JSON_API Factory {\n  public:\n    virtual ~Factory() = default;\n    /** \\brief Allocate a CharReader via operator new().\n     * \\throw std::exception if something goes wrong (e.g. invalid settings)\n     */\n    virtual CharReader* newCharReader() const = 0;\n  }; // Factory\n\nprotected:\n  class Impl {\n  public:\n    virtual ~Impl() = default;\n    virtual bool parse(char const* beginDoc, char const* endDoc, Value* root,\n                       String* errs) = 0;\n    virtual std::vector<StructuredError> getStructuredErrors() const = 0;\n  };\n\n  explicit CharReader(std::unique_ptr<Impl> impl) : _impl(std::move(impl)) {}\n\nprivate:\n  std::unique_ptr<Impl> _impl;\n}; // CharReader\n\n/** \\brief Build a CharReader implementation.\n *\n * Usage:\n *   \\code\n *   using namespace Json;\n *   CharReaderBuilder builder;\n *   builder[\"collectComments\"] = false;\n *   Value value;\n *   String errs;\n *   bool ok = parseFromStream(builder, std::cin, &value, &errs);\n *   \\endcode\n */\nclass JSON_API CharReaderBuilder : public CharReader::Factory {\npublic:\n  // Note: We use a Json::Value so that we can add data-members to this class\n  // without a major version bump.\n  /** Configuration of this builder.\n   * These are case-sensitive.\n   * Available settings (case-sensitive):\n   * - `\"collectComments\": false or true`\n   *   - true to collect comment and allow writing them back during\n   *     serialization, false to discard comments.  This parameter is ignored\n   *     if allowComments is false.\n   * - `\"allowComments\": false or true`\n   *   - true if comments are allowed.\n   * - `\"allowTrailingCommas\": false or true`\n   *   - true if trailing commas in objects and arrays are allowed.\n   * - `\"strictRoot\": false or true`\n   *   - true if root must be either an array or an object value\n   * - `\"allowDroppedNullPlaceholders\": false or true`\n   *   - true if dropped null placeholders are allowed. (See\n   *     StreamWriterBuilder.)\n   * - `\"allowNumericKeys\": false or true`\n   *   - true if numeric object keys are allowed.\n   * - `\"allowSingleQuotes\": false or true`\n   *   - true if '' are allowed for strings (both keys and values)\n   * - `\"stackLimit\": integer`\n   *   - Exceeding stackLimit (recursive depth of `readValue()`) will cause an\n   *     exception.\n   *   - This is a security issue (seg-faults caused by deeply nested JSON), so\n   *     the default is low.\n   * - `\"failIfExtra\": false or true`\n   *   - If true, `parse()` returns false when extra non-whitespace trails the\n   *     JSON value in the input string.\n   * - `\"rejectDupKeys\": false or true`\n   *   - If true, `parse()` returns false when a key is duplicated within an\n   *     object.\n   * - `\"allowSpecialFloats\": false or true`\n   *   - If true, special float values (NaNs and infinities) are allowed and\n   *     their values are lossfree restorable.\n   * - `\"skipBom\": false or true`\n   *   - If true, if the input starts with the Unicode byte order mark (BOM),\n   *     it is skipped.\n   *\n   * You can examine 'settings_` yourself to see the defaults. You can also\n   * write and read them just like any JSON Value.\n   * \\sa setDefaults()\n   */\n  Json::Value settings_;\n\n  CharReaderBuilder();\n  ~CharReaderBuilder() override;\n\n  CharReader* newCharReader() const override;\n\n  /** \\return true if 'settings' are legal and consistent;\n   *   otherwise, indicate bad settings via 'invalid'.\n   */\n  bool validate(Json::Value* invalid) const;\n\n  /** A simple way to update a specific setting.\n   */\n  Value& operator[](const String& key);\n\n  /** Called by ctor, but you can use this to reset settings_.\n   * \\pre 'settings' != NULL (but Json::null is fine)\n   * \\remark Defaults:\n   * \\snippet src/lib_json/json_reader.cpp CharReaderBuilderDefaults\n   */\n  static void setDefaults(Json::Value* settings);\n  /** Same as old Features::strictMode().\n   * \\pre 'settings' != NULL (but Json::null is fine)\n   * \\remark Defaults:\n   * \\snippet src/lib_json/json_reader.cpp CharReaderBuilderStrictMode\n   */\n  static void strictMode(Json::Value* settings);\n  /** ECMA-404 mode.\n   * \\pre 'settings' != NULL (but Json::null is fine)\n   * \\remark Defaults:\n   * \\snippet src/lib_json/json_reader.cpp CharReaderBuilderECMA404Mode\n   */\n  static void ecma404Mode(Json::Value* settings);\n};\n\n/** Consume entire stream and use its begin/end.\n * Someday we might have a real StreamReader, but for now this\n * is convenient.\n */\nbool JSON_API parseFromStream(CharReader::Factory const&, IStream&, Value* root,\n                              String* errs);\n\n/** \\brief Read from 'sin' into 'root'.\n *\n * Always keep comments from the input JSON.\n *\n * This can be used to read a file into a particular sub-object.\n * For example:\n *   \\code\n *   Json::Value root;\n *   cin >> root[\"dir\"][\"file\"];\n *   cout << root;\n *   \\endcode\n * Result:\n * \\verbatim\n * {\n * \"dir\": {\n *    \"file\": {\n *    // The input stream JSON would be nested here.\n *    }\n * }\n * }\n * \\endverbatim\n * \\throw std::exception on parse error.\n * \\see Json::operator<<()\n */\nJSON_API IStream& operator>>(IStream&, Value&);\n\n} // namespace Json\n\n#pragma pack(pop)\n\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n#pragma warning(pop)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#endif // JSON_READER_H_INCLUDED\n"
  },
  {
    "path": "include/json/value.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_VALUE_H_INCLUDED\n#define JSON_VALUE_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"forwards.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\n// Conditional NORETURN attribute on the throw functions would:\n// a) suppress false positives from static code analysis\n// b) possibly improve optimization opportunities.\n#if !defined(JSONCPP_NORETURN)\n#if defined(_MSC_VER) && _MSC_VER == 1800\n#define JSONCPP_NORETURN __declspec(noreturn)\n#else\n#define JSONCPP_NORETURN [[noreturn]]\n#endif\n#endif\n\n// Support for '= delete' with template declarations was a late addition\n// to the c++11 standard and is rejected by clang 3.8 and Apple clang 8.2\n// even though these declare themselves to be c++11 compilers.\n#if !defined(JSONCPP_TEMPLATE_DELETE)\n#if defined(__clang__) && defined(__apple_build_version__)\n#if __apple_build_version__ <= 8000042\n#define JSONCPP_TEMPLATE_DELETE\n#endif\n#elif defined(__clang__)\n#if __clang_major__ == 3 && __clang_minor__ <= 8\n#define JSONCPP_TEMPLATE_DELETE\n#endif\n#endif\n#if !defined(JSONCPP_TEMPLATE_DELETE)\n#define JSONCPP_TEMPLATE_DELETE = delete\n#endif\n#endif\n\n#ifndef JSONCPP_HAS_STRING_VIEW\n#if __cplusplus >= 201703L\n#define JSONCPP_HAS_STRING_VIEW 1\n#endif\n#endif\n\n#include <array>\n#include <exception>\n#include <map>\n#include <memory>\n#include <string>\n#include <vector>\n\n// Forward declaration for testing.\nstruct ValueTest;\n\n#ifdef JSONCPP_HAS_STRING_VIEW\n#include <string_view>\n#endif\n\n// Disable warning C4251: <data member>: <type> needs to have dll-interface to\n// be used by...\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n#pragma warning(push)\n#pragma warning(disable : 4251 4275)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#pragma pack(push)\n#pragma pack()\n\n/** \\brief JSON (JavaScript Object Notation).\n */\nnamespace Json {\n\n#if JSON_USE_EXCEPTION\n/** Base class for all exceptions we throw.\n *\n * We use nothing but these internally. Of course, STL can throw others.\n */\nclass JSON_API Exception : public std::exception {\npublic:\n  Exception(String msg);\n  ~Exception() noexcept override;\n  char const* what() const noexcept override;\n\nprotected:\n  String msg_;\n};\n\n/** Exceptions which the user cannot easily avoid.\n *\n * E.g. out-of-memory (when we use malloc), stack-overflow, malicious input\n *\n * \\remark derived from Json::Exception\n */\nclass JSON_API RuntimeError : public Exception {\npublic:\n  RuntimeError(String const& msg);\n};\n\n/** Exceptions thrown by JSON_ASSERT/JSON_FAIL macros.\n *\n * These are precondition-violations (user bugs) and internal errors (our bugs).\n *\n * \\remark derived from Json::Exception\n */\nclass JSON_API LogicError : public Exception {\npublic:\n  LogicError(String const& msg);\n};\n#endif\n\n/// used internally\nJSONCPP_NORETURN void throwRuntimeError(String const& msg);\n/// used internally\nJSONCPP_NORETURN void throwLogicError(String const& msg);\n\n/** \\brief Type of the value held by a Value object.\n */\nenum ValueType {\n  nullValue = 0, ///< 'null' value\n  intValue,      ///< signed integer value\n  uintValue,     ///< unsigned integer value\n  realValue,     ///< double value\n  stringValue,   ///< UTF-8 string value\n  booleanValue,  ///< bool value\n  arrayValue,    ///< array value (ordered list)\n  objectValue    ///< object value (collection of name/value pairs).\n};\n\nenum CommentPlacement {\n  commentBefore = 0,      ///< a comment placed on the line before a value\n  commentAfterOnSameLine, ///< a comment just after a value on the same line\n  commentAfter, ///< a comment on the line after a value (only make sense for\n  /// root value)\n  numberOfCommentPlacement\n};\n\n/** \\brief Type of precision for formatting of real values.\n */\nenum PrecisionType {\n  significantDigits = 0, ///< we set max number of significant digits in string\n  decimalPlaces          ///< we set max number of digits after \".\" in string\n};\n\n/** \\brief Lightweight wrapper to tag static string.\n *\n * Value constructor and objectValue member assignment takes advantage of the\n * StaticString and avoid the cost of string duplication when storing the\n * string or the member name.\n *\n * Example of usage:\n * \\code\n * Json::Value aValue( StaticString(\"some text\") );\n * Json::Value object;\n * static const StaticString code(\"code\");\n * object[code] = 1234;\n * \\endcode\n */\nclass JSON_API StaticString {\npublic:\n  explicit StaticString(const char* czstring) : c_str_(czstring) {}\n\n  operator const char*() const { return c_str_; }\n\n  const char* c_str() const { return c_str_; }\n\nprivate:\n  const char* c_str_;\n};\n\n/** \\brief Represents a <a HREF=\"http://www.json.org\">JSON</a> value.\n *\n * This class is a discriminated union wrapper that can represents a:\n * - signed integer [range: Value::minInt - Value::maxInt]\n * - unsigned integer (range: 0 - Value::maxUInt)\n * - double\n * - UTF-8 string\n * - boolean\n * - 'null'\n * - an ordered list of Value\n * - collection of name/value pairs (javascript object)\n *\n * The type of the held value is represented by a #ValueType and\n * can be obtained using type().\n *\n * Values of an #objectValue or #arrayValue can be accessed using operator[]()\n * methods.\n * Non-const methods will automatically create the a #nullValue element\n * if it does not exist.\n * The sequence of an #arrayValue will be automatically resized and initialized\n * with #nullValue. resize() can be used to enlarge or truncate an #arrayValue.\n *\n * The get() methods can be used to obtain default value in the case the\n * required element does not exist.\n *\n * It is possible to iterate over the list of member keys of an object using\n * the getMemberNames() method.\n *\n * \\note #Value string-length fit in size_t, but keys must be < 2^30.\n * (The reason is an implementation detail.) A #CharReader will raise an\n * exception if a bound is exceeded to avoid security holes in your app,\n * but the Value API does *not* check bounds. That is the responsibility\n * of the caller.\n */\nclass JSON_API Value {\n  friend class ValueIteratorBase;\n  friend struct ::ValueTest;\n\npublic:\n  using Members = std::vector<String>;\n  using iterator = ValueIterator;\n  using const_iterator = ValueConstIterator;\n  using UInt = Json::UInt;\n  using Int = Json::Int;\n#if defined(JSON_HAS_INT64)\n  using UInt64 = Json::UInt64;\n  using Int64 = Json::Int64;\n#endif // defined(JSON_HAS_INT64)\n  using LargestInt = Json::LargestInt;\n  using LargestUInt = Json::LargestUInt;\n  using ArrayIndex = Json::ArrayIndex;\n\n  // Required for boost integration, e. g. BOOST_TEST\n  using value_type = std::string;\n\n#if JSON_USE_NULLREF\n  // Binary compatibility kludges, do not use.\n  static const Value& null;\n  static const Value& nullRef;\n#endif\n\n  // null and nullRef are deprecated, use this instead.\n  static Value const& nullSingleton();\n\n  /// Minimum signed integer value that can be stored in a Json::Value.\n  static constexpr LargestInt minLargestInt =\n      LargestInt(~(LargestUInt(-1) / 2));\n  /// Maximum signed integer value that can be stored in a Json::Value.\n  static constexpr LargestInt maxLargestInt = LargestInt(LargestUInt(-1) / 2);\n  /// Maximum unsigned integer value that can be stored in a Json::Value.\n  static constexpr LargestUInt maxLargestUInt = LargestUInt(-1);\n\n  /// Minimum signed int value that can be stored in a Json::Value.\n  static constexpr Int minInt = Int(~(UInt(-1) / 2));\n  /// Maximum signed int value that can be stored in a Json::Value.\n  static constexpr Int maxInt = Int(UInt(-1) / 2);\n  /// Maximum unsigned int value that can be stored in a Json::Value.\n  static constexpr UInt maxUInt = UInt(-1);\n\n#if defined(JSON_HAS_INT64)\n  /// Minimum signed 64 bits int value that can be stored in a Json::Value.\n  static constexpr Int64 minInt64 = Int64(~(UInt64(-1) / 2));\n  /// Maximum signed 64 bits int value that can be stored in a Json::Value.\n  static constexpr Int64 maxInt64 = Int64(UInt64(-1) / 2);\n  /// Maximum unsigned 64 bits int value that can be stored in a Json::Value.\n  static constexpr UInt64 maxUInt64 = UInt64(-1);\n#endif // defined(JSON_HAS_INT64)\n  /// Default precision for real value for string representation.\n  static constexpr UInt defaultRealPrecision = 17;\n  // The constant is hard-coded because some compiler have trouble\n  // converting Value::maxUInt64 to a double correctly (AIX/xlC).\n  // Assumes that UInt64 is a 64 bits integer.\n  static constexpr double maxUInt64AsDouble = 18446744073709551615.0;\n// Workaround for bug in the NVIDIAs CUDA 9.1 nvcc compiler\n// when using gcc and clang backend compilers.  CZString\n// cannot be defined as private.  See issue #486\n#ifdef __NVCC__\npublic:\n#else\nprivate:\n#endif\n#ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION\n  class JSON_API CZString {\n  public:\n    enum DuplicationPolicy { noDuplication = 0, duplicate, duplicateOnCopy };\n    CZString(ArrayIndex index);\n    CZString(char const* str, unsigned length, DuplicationPolicy allocate);\n    CZString(CZString const& other);\n    CZString(CZString&& other) noexcept;\n    ~CZString();\n    CZString& operator=(const CZString& other);\n    CZString& operator=(CZString&& other) noexcept;\n\n    bool operator<(CZString const& other) const;\n    bool operator==(CZString const& other) const;\n    ArrayIndex index() const;\n    // const char* c_str() const; ///< \\deprecated\n    char const* data() const;\n    unsigned length() const;\n    bool isStaticString() const;\n\n  private:\n    void swap(CZString& other);\n\n    struct StringStorage {\n      unsigned policy_ : 2;\n      unsigned length_ : 30; // 1GB max\n    };\n\n    char const* cstr_; // actually, a prefixed string, unless policy is noDup\n    union {\n      ArrayIndex index_;\n      StringStorage storage_;\n    };\n  };\n\npublic:\n  typedef std::map<CZString, Value> ObjectValues;\n#endif // ifndef JSONCPP_DOC_EXCLUDE_IMPLEMENTATION\n\npublic:\n  /**\n   * \\brief Create a default Value of the given type.\n   *\n   * This is a very useful constructor.\n   * To create an empty array, pass arrayValue.\n   * To create an empty object, pass objectValue.\n   * Another Value can then be set to this one by assignment.\n   * This is useful since clear() and resize() will not alter types.\n   *\n   * Examples:\n   *   \\code\n   *   Json::Value null_value; // null\n   *   Json::Value arr_value(Json::arrayValue); // []\n   *   Json::Value obj_value(Json::objectValue); // {}\n   *   \\endcode\n   */\n  Value(ValueType type = nullValue);\n  Value(Int value);\n  Value(UInt value);\n#if defined(JSON_HAS_INT64)\n  Value(Int64 value);\n  Value(UInt64 value);\n#endif // if defined(JSON_HAS_INT64)\n  Value(double value);\n  Value(const char* value); ///< Copy til first 0. (NULL causes to seg-fault.)\n  Value(const char* begin, const char* end); ///< Copy all, incl zeroes.\n  /**\n   * \\brief Constructs a value from a static string.\n   *\n   * Like other value string constructor but do not duplicate the string for\n   * internal storage. The given string must remain alive after the call to\n   * this constructor.\n   *\n   * \\note This works only for null-terminated strings. (We cannot change the\n   * size of this class, so we have nowhere to store the length, which might be\n   * computed later for various operations.)\n   *\n   * Example of usage:\n   *   \\code\n   *   static StaticString foo(\"some text\");\n   *   Json::Value aValue(foo);\n   *   \\endcode\n   */\n  Value(const StaticString& value);\n  Value(const String& value);\n#ifdef JSONCPP_HAS_STRING_VIEW\n  Value(std::string_view value);\n#endif\n  Value(bool value);\n  Value(std::nullptr_t ptr) = delete;\n  Value(const Value& other);\n  Value(Value&& other) noexcept;\n  ~Value();\n\n  /// \\note Overwrite existing comments. To preserve comments, use\n  /// #swapPayload().\n  Value& operator=(const Value& other);\n  Value& operator=(Value&& other) noexcept;\n\n  /// Swap everything.\n  void swap(Value& other);\n  /// Swap values but leave comments and source offsets in place.\n  void swapPayload(Value& other);\n\n  /// copy everything.\n  void copy(const Value& other);\n  /// copy values but leave comments and source offsets in place.\n  void copyPayload(const Value& other);\n\n  ValueType type() const;\n\n  /// Compare payload only, not comments etc.\n  bool operator<(const Value& other) const;\n  bool operator<=(const Value& other) const;\n  bool operator>=(const Value& other) const;\n  bool operator>(const Value& other) const;\n  bool operator==(const Value& other) const;\n  bool operator!=(const Value& other) const;\n  int compare(const Value& other) const;\n\n  const char* asCString() const; ///< Embedded zeroes could cause you trouble!\n#if JSONCPP_USE_SECURE_MEMORY\n  unsigned getCStringLength() const; // Allows you to understand the length of\n                                     // the CString\n#endif\n  String asString() const; ///< Embedded zeroes are possible.\n  /** Get raw char* of string-value.\n   *  \\return false if !string. (Seg-fault if str or end are NULL.)\n   */\n  bool getString(char const** begin, char const** end) const;\n#ifdef JSONCPP_HAS_STRING_VIEW\n  /** Get string_view of string-value.\n   *  \\return false if !string. (Seg-fault if str is NULL.)\n   */\n  bool getString(std::string_view* str) const;\n#endif\n  Int asInt() const;\n  UInt asUInt() const;\n#if defined(JSON_HAS_INT64)\n  Int64 asInt64() const;\n  UInt64 asUInt64() const;\n#endif // if defined(JSON_HAS_INT64)\n  LargestInt asLargestInt() const;\n  LargestUInt asLargestUInt() const;\n  float asFloat() const;\n  double asDouble() const;\n  bool asBool() const;\n\n  bool isNull() const;\n  bool isBool() const;\n  bool isInt() const;\n  bool isInt64() const;\n  bool isUInt() const;\n  bool isUInt64() const;\n  bool isIntegral() const;\n  bool isDouble() const;\n  bool isNumeric() const;\n  bool isString() const;\n  bool isArray() const;\n  bool isObject() const;\n\n  /// The `as<T>` and `is<T>` member function templates and specializations.\n  template <typename T> T as() const JSONCPP_TEMPLATE_DELETE;\n  template <typename T> bool is() const JSONCPP_TEMPLATE_DELETE;\n\n  bool isConvertibleTo(ValueType other) const;\n\n  /// Number of values in array or object\n  ArrayIndex size() const;\n\n  /// \\brief Return true if empty array, empty object, or null;\n  /// otherwise, false.\n  bool empty() const;\n\n  /// Return !isNull()\n  explicit operator bool() const;\n\n  /// Remove all object members and array elements.\n  /// \\pre type() is arrayValue, objectValue, or nullValue\n  /// \\post type() is unchanged\n  void clear();\n\n  /// Resize the array to newSize elements.\n  /// New elements are initialized to null.\n  /// May only be called on nullValue or arrayValue.\n  /// \\pre type() is arrayValue or nullValue\n  /// \\post type() is arrayValue\n  void resize(ArrayIndex newSize);\n\n  ///@{\n  /// Access an array element (zero based index). If the array contains less\n  /// than index element, then null value are inserted in the array so that\n  /// its size is index+1.\n  /// (You may need to say 'value[0u]' to get your compiler to distinguish\n  /// this from the operator[] which takes a string.)\n  Value& operator[](ArrayIndex index);\n  Value& operator[](int index);\n  ///@}\n\n  ///@{\n  /// Access an array element (zero based index).\n  /// (You may need to say 'value[0u]' to get your compiler to distinguish\n  /// this from the operator[] which takes a string.)\n  const Value& operator[](ArrayIndex index) const;\n  const Value& operator[](int index) const;\n  ///@}\n\n  /// If the array contains at least index+1 elements, returns the element\n  /// value, otherwise returns defaultValue.\n  Value get(ArrayIndex index, const Value& defaultValue) const;\n  /// Return true if index < size().\n  bool isValidIndex(ArrayIndex index) const;\n  /// \\brief Append value to array at the end.\n  ///\n  /// Equivalent to jsonvalue[jsonvalue.size()] = value;\n  Value& append(const Value& value);\n  Value& append(Value&& value);\n\n  /// \\brief Insert value in array at specific index\n  bool insert(ArrayIndex index, const Value& newValue);\n  bool insert(ArrayIndex index, Value&& newValue);\n\n#ifdef JSONCPP_HAS_STRING_VIEW\n  /// Access an object value by name, create a null member if it does not exist.\n  /// \\param key may contain embedded nulls.\n  Value& operator[](std::string_view key);\n  /// Access an object value by name, returns null if there is no member with\n  /// that name.\n  /// \\param key may contain embedded nulls.\n  const Value& operator[](std::string_view key) const;\n#else\n  /// Access an object value by name, create a null member if it does not exist.\n  /// \\note Because of our implementation, keys are limited to 2^30 -1 chars.\n  /// Exceeding that will cause an exception.\n  Value& operator[](const char* key);\n  /// Access an object value by name, returns null if there is no member with\n  /// that name.\n  const Value& operator[](const char* key) const;\n  /// Access an object value by name, create a null member if it does not exist.\n  /// \\param key may contain embedded nulls.\n  Value& operator[](const String& key);\n  /// Access an object value by name, returns null if there is no member with\n  /// that name.\n  /// \\param key may contain embedded nulls.\n  const Value& operator[](const String& key) const;\n#endif\n  /** \\brief Access an object value by name, create a null member if it does not\n   * exist.\n   *\n   * If the object has no entry for that name, then the member name used to\n   * store the new entry is not duplicated.\n   * Example of use:\n   *   \\code\n   *   Json::Value object;\n   *   static const StaticString code(\"code\");\n   *   object[code] = 1234;\n   *   \\endcode\n   */\n  Value& operator[](const StaticString& key);\n#ifdef JSONCPP_HAS_STRING_VIEW\n  /// Return the member named key if it exist, defaultValue otherwise.\n  /// \\note deep copy\n  Value get(std::string_view key, const Value& defaultValue) const;\n#else\n  /// Return the member named key if it exist, defaultValue otherwise.\n  /// \\note deep copy\n  Value get(const char* key, const Value& defaultValue) const;\n  /// Return the member named key if it exist, defaultValue otherwise.\n  /// \\note deep copy\n  /// \\param key may contain embedded nulls.\n  Value get(const String& key, const Value& defaultValue) const;\n#endif\n  /// Return the member named key if it exist, defaultValue otherwise.\n  /// \\note deep copy\n  /// \\note key may contain embedded nulls.\n  Value get(const char* begin, const char* end,\n            const Value& defaultValue) const;\n  /// Most general and efficient version of isMember()const, get()const,\n  /// and operator[]const\n  /// \\note As stated elsewhere, behavior is undefined if (end-begin) >= 2^30\n  Value const* find(char const* begin, char const* end) const;\n  /// Most general and efficient version of isMember()const, get()const,\n  /// and operator[]const\n  Value const* find(const String& key) const;\n\n  /// Calls find and only returns a valid pointer if the type is found\n  template <typename T, bool (T::*TMemFn)() const>\n  Value const* findValue(const String& key) const {\n    Value const* found = find(key);\n    if (!found || !(found->*TMemFn)())\n      return nullptr;\n    return found;\n  }\n\n  Value const* findNull(const String& key) const;\n  Value const* findBool(const String& key) const;\n  Value const* findInt(const String& key) const;\n  Value const* findInt64(const String& key) const;\n  Value const* findUInt(const String& key) const;\n  Value const* findUInt64(const String& key) const;\n  Value const* findIntegral(const String& key) const;\n  Value const* findDouble(const String& key) const;\n  Value const* findNumeric(const String& key) const;\n  Value const* findString(const String& key) const;\n  Value const* findArray(const String& key) const;\n  Value const* findObject(const String& key) const;\n\n  /// Most general and efficient version of object-mutators.\n  /// \\note As stated elsewhere, behavior is undefined if (end-begin) >= 2^30\n  /// \\return non-zero, but JSON_ASSERT if this is neither object nor nullValue.\n  Value* demand(char const* begin, char const* end);\n  /// \\brief Remove and return the named member.\n  ///\n  /// Do nothing if it did not exist.\n  /// \\pre type() is objectValue or nullValue\n  /// \\post type() is unchanged\n#if JSONCPP_HAS_STRING_VIEW\n  void removeMember(std::string_view key);\n#else\n  void removeMember(const char* key);\n  /// Same as removeMember(const char*)\n  /// \\param key may contain embedded nulls.\n  void removeMember(const String& key);\n#endif\n  /** \\brief Remove the named map member.\n   *\n   *  Update 'removed' iff removed.\n   *  \\param key may contain embedded nulls.\n   *  \\return true iff removed (no exceptions)\n   */\n#if JSONCPP_HAS_STRING_VIEW\n  bool removeMember(std::string_view key, Value* removed);\n#else\n  bool removeMember(String const& key, Value* removed);\n  /// Same as removeMember(const char* begin, const char* end, Value* removed),\n  /// but 'key' is null-terminated.\n  bool removeMember(const char* key, Value* removed);\n#endif\n  /// Same as removeMember(String const& key, Value* removed)\n  bool removeMember(const char* begin, const char* end, Value* removed);\n  /** \\brief Remove the indexed array element.\n   *\n   *  O(n) expensive operations.\n   *  Update 'removed' iff removed.\n   *  \\return true if removed (no exceptions)\n   */\n  bool removeIndex(ArrayIndex index, Value* removed);\n\n#ifdef JSONCPP_HAS_STRING_VIEW\n  /// Return true if the object has a member named key.\n  /// \\param key may contain embedded nulls.\n  bool isMember(std::string_view key) const;\n#else\n  /// Return true if the object has a member named key.\n  /// \\note 'key' must be null-terminated.\n  bool isMember(const char* key) const;\n  /// Return true if the object has a member named key.\n  /// \\param key may contain embedded nulls.\n  bool isMember(const String& key) const;\n#endif\n  /// Same as isMember(String const& key)const\n  bool isMember(const char* begin, const char* end) const;\n\n  /// \\brief Return a list of the member names.\n  ///\n  /// If null, return an empty list.\n  /// \\pre type() is objectValue or nullValue\n  /// \\post if type() was nullValue, it remains nullValue\n  Members getMemberNames() const;\n\n  /// \\deprecated Always pass len.\n  JSONCPP_DEPRECATED(\"Use setComment(String const&) instead.\")\n  void setComment(const char* comment, CommentPlacement placement) {\n    setComment(String(comment, strlen(comment)), placement);\n  }\n  /// Comments must be //... or /* ... */\n  void setComment(const char* comment, size_t len, CommentPlacement placement) {\n    setComment(String(comment, len), placement);\n  }\n  /// Comments must be //... or /* ... */\n  void setComment(String comment, CommentPlacement placement);\n  bool hasComment(CommentPlacement placement) const;\n  /// Include delimiters and embedded newlines.\n  String getComment(CommentPlacement placement) const;\n\n  String toStyledString() const;\n\n  const_iterator begin() const;\n  const_iterator end() const;\n\n  iterator begin();\n  iterator end();\n\n  /// \\brief Returns a reference to the first element in the `Value`.\n  /// Requires that this value holds an array or json object, with at least one\n  /// element.\n  const Value& front() const;\n\n  /// \\brief Returns a reference to the first element in the `Value`.\n  /// Requires that this value holds an array or json object, with at least one\n  /// element.\n  Value& front();\n\n  /// \\brief Returns a reference to the last element in the `Value`.\n  /// Requires that value holds an array or json object, with at least one\n  /// element.\n  const Value& back() const;\n\n  /// \\brief Returns a reference to the last element in the `Value`.\n  /// Requires that this value holds an array or json object, with at least one\n  /// element.\n  Value& back();\n\n  // Accessors for the [start, limit) range of bytes within the JSON text from\n  // which this value was parsed, if any.\n  void setOffsetStart(ptrdiff_t start);\n  void setOffsetLimit(ptrdiff_t limit);\n  ptrdiff_t getOffsetStart() const;\n  ptrdiff_t getOffsetLimit() const;\n\nprivate:\n  void setType(ValueType v) {\n    bits_.value_type_ = static_cast<unsigned char>(v);\n  }\n  bool isAllocated() const { return bits_.allocated_; }\n  void setIsAllocated(bool v) { bits_.allocated_ = v; }\n\n  void initBasic(ValueType type, bool allocated = false);\n  void dupPayload(const Value& other);\n  void releasePayload();\n  void dupMeta(const Value& other);\n\n  Value& resolveReference(const char* key);\n  Value& resolveReference(const char* key, const char* end);\n\n  // struct MemberNamesTransform\n  //{\n  //   typedef const char *result_type;\n  //   const char *operator()( const CZString &name ) const\n  //   {\n  //      return name.c_str();\n  //   }\n  //};\n\n  union ValueHolder {\n    LargestInt int_;\n    LargestUInt uint_;\n    double real_;\n    bool bool_;\n    char* string_; // if allocated_, ptr to { unsigned, char[] }.\n    ObjectValues* map_;\n  } value_;\n\n  struct {\n    // Really a ValueType, but types should agree for bitfield packing.\n    unsigned int value_type_ : 8;\n    // Unless allocated_, string_ must be null-terminated.\n    unsigned int allocated_ : 1;\n  } bits_;\n\n  class Comments {\n  public:\n    Comments() = default;\n    Comments(const Comments& that);\n    Comments(Comments&& that) noexcept;\n    Comments& operator=(const Comments& that);\n    Comments& operator=(Comments&& that) noexcept;\n    bool has(CommentPlacement slot) const;\n    String get(CommentPlacement slot) const;\n    void set(CommentPlacement slot, String comment);\n\n  private:\n    using Array = std::array<String, numberOfCommentPlacement>;\n    std::unique_ptr<Array> ptr_;\n  };\n  Comments comments_;\n\n  // [start, limit) byte offsets in the source JSON text from which this Value\n  // was extracted.\n  ptrdiff_t start_;\n  ptrdiff_t limit_;\n};\n\ntemplate <> inline bool Value::as<bool>() const { return asBool(); }\ntemplate <> inline bool Value::is<bool>() const { return isBool(); }\n\ntemplate <> inline Int Value::as<Int>() const { return asInt(); }\ntemplate <> inline bool Value::is<Int>() const { return isInt(); }\n\ntemplate <> inline UInt Value::as<UInt>() const { return asUInt(); }\ntemplate <> inline bool Value::is<UInt>() const { return isUInt(); }\n\n#if defined(JSON_HAS_INT64)\ntemplate <> inline Int64 Value::as<Int64>() const { return asInt64(); }\ntemplate <> inline bool Value::is<Int64>() const { return isInt64(); }\n\ntemplate <> inline UInt64 Value::as<UInt64>() const { return asUInt64(); }\ntemplate <> inline bool Value::is<UInt64>() const { return isUInt64(); }\n#endif\n\ntemplate <> inline double Value::as<double>() const { return asDouble(); }\ntemplate <> inline bool Value::is<double>() const { return isDouble(); }\n\ntemplate <> inline String Value::as<String>() const { return asString(); }\ntemplate <> inline bool Value::is<String>() const { return isString(); }\n\n/// These `as` specializations are type conversions, and do not have a\n/// corresponding `is`.\ntemplate <> inline float Value::as<float>() const { return asFloat(); }\ntemplate <> inline const char* Value::as<const char*>() const {\n  return asCString();\n}\n\n/** \\brief Experimental and untested: represents an element of the \"path\" to\n * access a node.\n */\nclass JSON_API PathArgument {\npublic:\n  friend class Path;\n\n  PathArgument();\n  PathArgument(ArrayIndex index);\n  PathArgument(const char* key);\n  PathArgument(String key);\n\nprivate:\n  enum Kind { kindNone = 0, kindIndex, kindKey };\n  String key_;\n  ArrayIndex index_{};\n  Kind kind_{kindNone};\n};\n\n/** \\brief Experimental and untested: represents a \"path\" to access a node.\n *\n * Syntax:\n * - \".\" => root node\n * - \".[n]\" => elements at index 'n' of root node (an array value)\n * - \".name\" => member named 'name' of root node (an object value)\n * - \".name1.name2.name3\"\n * - \".[0][1][2].name1[3]\"\n * - \".%\" => member name is provided as parameter\n * - \".[%]\" => index is provided as parameter\n */\nclass JSON_API Path {\npublic:\n  Path(const String& path, const PathArgument& a1 = PathArgument(),\n       const PathArgument& a2 = PathArgument(),\n       const PathArgument& a3 = PathArgument(),\n       const PathArgument& a4 = PathArgument(),\n       const PathArgument& a5 = PathArgument());\n\n  const Value& resolve(const Value& root) const;\n  Value resolve(const Value& root, const Value& defaultValue) const;\n  /// Creates the \"path\" to access the specified node and returns a reference on\n  /// the node.\n  Value& make(Value& root) const;\n\nprivate:\n  using InArgs = std::vector<const PathArgument*>;\n  using Args = std::vector<PathArgument>;\n\n  void makePath(const String& path, const InArgs& in);\n  void addPathInArg(const String& path, const InArgs& in,\n                    InArgs::const_iterator& itInArg, PathArgument::Kind kind);\n  static void invalidPath(const String& path, int location);\n\n  Args args_;\n};\n\n/** \\brief base class for Value iterators.\n *\n */\nclass JSON_API ValueIteratorBase {\npublic:\n  using iterator_category = std::bidirectional_iterator_tag;\n  using size_t = unsigned int;\n  using difference_type = int;\n  using SelfType = ValueIteratorBase;\n\n  bool operator==(const SelfType& other) const { return isEqual(other); }\n\n  bool operator!=(const SelfType& other) const { return !isEqual(other); }\n\n  difference_type operator-(const SelfType& other) const {\n    return other.computeDistance(*this);\n  }\n\n  /// Return either the index or the member name of the referenced value as a\n  /// Value.\n  Value key() const;\n\n  /// Return the index of the referenced Value, or -1 if it is not an\n  /// arrayValue.\n  UInt index() const;\n\n  /// Return the member name of the referenced Value, or \"\" if it is not an\n  /// objectValue.\n  /// \\note Avoid `c_str()` on result, as embedded zeroes are possible.\n  String name() const;\n\n  /// Return the member name of the referenced Value. \"\" if it is not an\n  /// objectValue.\n  /// \\deprecated This cannot be used for UTF-8 strings, since there can be\n  /// embedded nulls.\n  JSONCPP_DEPRECATED(\"Use `key = name();` instead.\")\n  char const* memberName() const;\n  /// Return the member name of the referenced Value, or NULL if it is not an\n  /// objectValue.\n  /// \\note Better version than memberName(). Allows embedded nulls.\n  char const* memberName(char const** end) const;\n\nprotected:\n  /*! Internal utility functions to assist with implementing\n   *   other iterator functions. The const and non-const versions\n   *   of the \"deref\" protected methods expose the protected\n   *   current_ member variable in a way that can often be\n   *   optimized away by the compiler.\n   */\n  const Value& deref() const;\n  Value& deref();\n\n  void increment();\n\n  void decrement();\n\n  difference_type computeDistance(const SelfType& other) const;\n\n  bool isEqual(const SelfType& other) const;\n\n  void copy(const SelfType& other);\n\nprivate:\n  Value::ObjectValues::iterator current_;\n  // Indicates that iterator is for a null value.\n  bool isNull_{true};\n\npublic:\n  // For some reason, BORLAND needs these at the end, rather\n  // than earlier. No idea why.\n  ValueIteratorBase();\n  explicit ValueIteratorBase(const Value::ObjectValues::iterator& current);\n};\n\n/** \\brief const iterator for object and array value.\n *\n */\nclass JSON_API ValueConstIterator : public ValueIteratorBase {\n  friend class Value;\n\npublic:\n  using value_type = const Value;\n  // typedef unsigned int size_t;\n  // typedef int difference_type;\n  using reference = const Value&;\n  using pointer = const Value*;\n  using SelfType = ValueConstIterator;\n\n  ValueConstIterator();\n  ValueConstIterator(ValueIterator const& other);\n\nprivate:\n  /*! \\internal Use by Value to create an iterator.\n   */\n  explicit ValueConstIterator(const Value::ObjectValues::iterator& current);\n\npublic:\n  SelfType& operator=(const ValueIteratorBase& other);\n\n  SelfType operator++(int) {\n    SelfType temp(*this);\n    ++*this;\n    return temp;\n  }\n\n  SelfType operator--(int) {\n    SelfType temp(*this);\n    --*this;\n    return temp;\n  }\n\n  SelfType& operator--() {\n    decrement();\n    return *this;\n  }\n\n  SelfType& operator++() {\n    increment();\n    return *this;\n  }\n\n  reference operator*() const { return deref(); }\n\n  pointer operator->() const { return &deref(); }\n};\n\n/** \\brief Iterator for object and array value.\n */\nclass JSON_API ValueIterator : public ValueIteratorBase {\n  friend class Value;\n\npublic:\n  using value_type = Value;\n  using size_t = unsigned int;\n  using difference_type = int;\n  using reference = Value&;\n  using pointer = Value*;\n  using SelfType = ValueIterator;\n\n  ValueIterator();\n  explicit ValueIterator(const ValueConstIterator& other);\n  ValueIterator(const ValueIterator& other);\n\nprivate:\n  /*! \\internal Use by Value to create an iterator.\n   */\n  explicit ValueIterator(const Value::ObjectValues::iterator& current);\n\npublic:\n  SelfType& operator=(const SelfType& other);\n\n  SelfType operator++(int) {\n    SelfType temp(*this);\n    ++*this;\n    return temp;\n  }\n\n  SelfType operator--(int) {\n    SelfType temp(*this);\n    --*this;\n    return temp;\n  }\n\n  SelfType& operator--() {\n    decrement();\n    return *this;\n  }\n\n  SelfType& operator++() {\n    increment();\n    return *this;\n  }\n\n  /*! The return value of non-const iterators can be\n   *  changed, so the these functions are not const\n   *  because the returned references/pointers can be used\n   *  to change state of the base class.\n   */\n  reference operator*() const { return const_cast<reference>(deref()); }\n  pointer operator->() const { return const_cast<pointer>(&deref()); }\n};\n\ninline void swap(Value& a, Value& b) { a.swap(b); }\n\ninline const Value& Value::front() const { return *begin(); }\n\ninline Value& Value::front() { return *begin(); }\n\ninline const Value& Value::back() const { return *(--end()); }\n\ninline Value& Value::back() { return *(--end()); }\n\n} // namespace Json\n\n#pragma pack(pop)\n\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n#pragma warning(pop)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#endif // JSON_H_INCLUDED\n"
  },
  {
    "path": "include/json/version.h",
    "content": "#ifndef JSON_VERSION_H_INCLUDED\n#define JSON_VERSION_H_INCLUDED\n\n// Note: version must be updated in four places when doing a release. This\n// annoying process ensures that amalgamate, CMake, and meson all report the\n// correct version.\n// 1. /meson.build\n// 2. /include/json/version.h\n// 3. /CMakeLists.txt\n// 4. /MODULE.bazel\n// IMPORTANT: also update the SOVERSION!!\n\n#define JSONCPP_VERSION_STRING \"1.9.8\"\n#define JSONCPP_VERSION_MAJOR 1\n#define JSONCPP_VERSION_MINOR 9\n#define JSONCPP_VERSION_PATCH 8\n#define JSONCPP_VERSION_HEXA                                                   \\\n  ((JSONCPP_VERSION_MAJOR << 24) | (JSONCPP_VERSION_MINOR << 16) |             \\\n   (JSONCPP_VERSION_PATCH << 8))\n\n#if !defined(JSONCPP_USE_SECURE_MEMORY)\n#define JSONCPP_USE_SECURE_MEMORY 0\n#endif\n// If non-zero, the library zeroes any memory that it has allocated before\n// it frees its memory.\n\n#endif // JSON_VERSION_H_INCLUDED\n"
  },
  {
    "path": "include/json/writer.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSON_WRITER_H_INCLUDED\n#define JSON_WRITER_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"value.h\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n#include <ostream>\n#include <string>\n#include <vector>\n\n// Disable warning C4251: <data member>: <type> needs to have dll-interface to\n// be used by...\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING) && defined(_MSC_VER)\n#pragma warning(push)\n#pragma warning(disable : 4251)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#pragma pack(push)\n#pragma pack()\n\nnamespace Json {\n\nclass Value;\n\n/**\n *\n * Usage:\n *  \\code\n *  using namespace Json;\n *  void writeToStdout(StreamWriter::Factory const& factory, Value const& value)\n * { std::unique_ptr<StreamWriter> const writer( factory.newStreamWriter());\n *    writer->write(value, &std::cout);\n *    std::cout << std::endl;  // add lf and flush\n *  }\n *  \\endcode\n */\nclass JSON_API StreamWriter {\nprotected:\n  OStream* sout_; // not owned; will not delete\npublic:\n  StreamWriter();\n  virtual ~StreamWriter();\n  /** Write Value into document as configured in sub-class.\n   *   Do not take ownership of sout, but maintain a reference during function.\n   *   \\pre sout != NULL\n   *   \\return zero on success (For now, we always return zero, so check the\n   *   stream instead.) \\throw std::exception possibly, depending on\n   * configuration\n   */\n  virtual int write(Value const& root, OStream* sout) = 0;\n\n  /** \\brief A simple abstract factory.\n   */\n  class JSON_API Factory {\n  public:\n    virtual ~Factory();\n    /** \\brief Allocate a CharReader via operator new().\n     * \\throw std::exception if something goes wrong (e.g. invalid settings)\n     */\n    virtual StreamWriter* newStreamWriter() const = 0;\n  }; // Factory\n}; // StreamWriter\n\n/** \\brief Write into stringstream, then return string, for convenience.\n * A StreamWriter will be created from the factory, used, and then deleted.\n */\nString JSON_API writeString(StreamWriter::Factory const& factory,\n                            Value const& root);\n\n/** \\brief Build a StreamWriter implementation.\n\n* Usage:\n*   \\code\n*   using namespace Json;\n*   Value value = ...;\n*   StreamWriterBuilder builder;\n*   builder[\"commentStyle\"] = \"None\";\n*   builder[\"indentation\"] = \"   \";  // or whatever you like\n*   std::unique_ptr<Json::StreamWriter> writer(\n*      builder.newStreamWriter());\n*   writer->write(value, &std::cout);\n*   std::cout << std::endl;  // add lf and flush\n*   \\endcode\n*/\nclass JSON_API StreamWriterBuilder : public StreamWriter::Factory {\npublic:\n  // Note: We use a Json::Value so that we can add data-members to this class\n  // without a major version bump.\n  /** Configuration of this builder.\n   *  Available settings (case-sensitive):\n   *  - \"commentStyle\": \"None\" or \"All\"\n   *  - \"indentation\":  \"<anything>\".\n   *  - Setting this to an empty string also omits newline characters.\n   *  - \"enableYAMLCompatibility\": false or true\n   *  - slightly change the whitespace around colons\n   *  - \"dropNullPlaceholders\": false or true\n   *  - Drop the \"null\" string from the writer's output for nullValues.\n   *    Strictly speaking, this is not valid JSON. But when the output is being\n   *    fed to a browser's JavaScript, it makes for smaller output and the\n   *    browser can handle the output just fine.\n   *  - \"useSpecialFloats\": false or true\n   *  - If true, outputs non-finite floating point values in the following way:\n   *    NaN values as \"NaN\", positive infinity as \"Infinity\", and negative\n   *  infinity as \"-Infinity\".\n   *  - \"precision\": int\n   *  - Number of precision digits for formatting of real values.\n   *  - \"precisionType\": \"significant\"(default) or \"decimal\"\n   *  - Type of precision for formatting of real values.\n   *  - \"emitUTF8\": false or true\n   *  - If true, outputs raw UTF8 strings instead of escaping them.\n\n   *  You can examine 'settings_` yourself\n   *  to see the defaults. You can also write and read them just like any\n   *  JSON Value.\n   *  \\sa setDefaults()\n   */\n  Json::Value settings_;\n\n  StreamWriterBuilder();\n  ~StreamWriterBuilder() override;\n\n  /**\n   * \\throw std::exception if something goes wrong (e.g. invalid settings)\n   */\n  StreamWriter* newStreamWriter() const override;\n\n  /** \\return true if 'settings' are legal and consistent;\n   *   otherwise, indicate bad settings via 'invalid'.\n   */\n  bool validate(Json::Value* invalid) const;\n  /** A simple way to update a specific setting.\n   */\n  Value& operator[](const String& key);\n\n  /** Called by ctor, but you can use this to reset settings_.\n   * \\pre 'settings' != NULL (but Json::null is fine)\n   * \\remark Defaults:\n   * \\snippet src/lib_json/json_writer.cpp StreamWriterBuilderDefaults\n   */\n  static void setDefaults(Json::Value* settings);\n};\n\n/** \\brief Abstract class for writers.\n * \\deprecated Use StreamWriter. (And really, this is an implementation detail.)\n */\nclass JSON_API Writer {\npublic:\n  virtual ~Writer();\n\n  virtual String write(const Value& root) = 0;\n};\n\n/** \\brief Outputs a Value in <a HREF=\"http://www.json.org\">JSON</a> format\n *without formatting (not human friendly).\n *\n * The JSON document is written in a single line. It is not intended for 'human'\n *consumption,\n * but may be useful to support feature such as RPC where bandwidth is limited.\n * \\sa Reader, Value\n * \\deprecated Use StreamWriterBuilder.\n */\n#if defined(_MSC_VER)\n#pragma warning(push)\n#pragma warning(disable : 4996) // Deriving from deprecated class\n#endif\nclass JSON_API FastWriter : public Writer {\npublic:\n  FastWriter();\n  ~FastWriter() override = default;\n\n  void enableYAMLCompatibility();\n\n  /** \\brief Drop the \"null\" string from the writer's output for nullValues.\n   * Strictly speaking, this is not valid JSON. But when the output is being\n   * fed to a browser's JavaScript, it makes for smaller output and the\n   * browser can handle the output just fine.\n   */\n  void dropNullPlaceholders();\n\n  void omitEndingLineFeed();\n\npublic: // overridden from Writer\n  String write(const Value& root) override;\n\nprivate:\n  void writeValue(const Value& value);\n\n  String document_;\n  bool yamlCompatibilityEnabled_{false};\n  bool dropNullPlaceholders_{false};\n  bool omitEndingLineFeed_{false};\n};\n#if defined(_MSC_VER)\n#pragma warning(pop)\n#endif\n\n/** \\brief Writes a Value in <a HREF=\"http://www.json.org\">JSON</a> format in a\n *human friendly way.\n *\n * The rules for line break and indent are as follow:\n * - Object value:\n *     - if empty then print {} without indent and line break\n *     - if not empty the print '{', line break & indent, print one value per\n *line\n *       and then unindent and line break and print '}'.\n * - Array value:\n *     - if empty then print [] without indent and line break\n *     - if the array contains no object value, empty array or some other value\n *types,\n *       and all the values fit on one lines, then print the array on a single\n *line.\n *     - otherwise, it the values do not fit on one line, or the array contains\n *       object or non empty array, then print one value per line.\n *\n * If the Value have comments then they are outputted according to their\n *#CommentPlacement.\n *\n * \\sa Reader, Value, Value::setComment()\n * \\deprecated Use StreamWriterBuilder.\n */\n#if defined(_MSC_VER)\n#pragma warning(push)\n#pragma warning(disable : 4996) // Deriving from deprecated class\n#endif\nclass JSON_API StyledWriter : public Writer {\npublic:\n  StyledWriter();\n  ~StyledWriter() override = default;\n\npublic: // overridden from Writer\n  /** \\brief Serialize a Value in <a HREF=\"http://www.json.org\">JSON</a> format.\n   * \\param root Value to serialize.\n   * \\return String containing the JSON document that represents the root value.\n   */\n  String write(const Value& root) override;\n\nprivate:\n  void writeValue(const Value& value);\n  void writeArrayValue(const Value& value);\n  bool isMultilineArray(const Value& value);\n  void pushValue(const String& value);\n  void writeIndent();\n  void writeWithIndent(const String& value);\n  void indent();\n  void unindent();\n  void writeCommentBeforeValue(const Value& root);\n  void writeCommentAfterValueOnSameLine(const Value& root);\n  static bool hasCommentForValue(const Value& value);\n  static String normalizeEOL(const String& text);\n\n  using ChildValues = std::vector<String>;\n\n  ChildValues childValues_;\n  String document_;\n  String indentString_;\n  unsigned int rightMargin_{74};\n  unsigned int indentSize_{3};\n  bool addChildValues_{false};\n};\n#if defined(_MSC_VER)\n#pragma warning(pop)\n#endif\n\n/** \\brief Writes a Value in <a HREF=\"http://www.json.org\">JSON</a> format in a\n human friendly way,\n     to a stream rather than to a string.\n *\n * The rules for line break and indent are as follow:\n * - Object value:\n *     - if empty then print {} without indent and line break\n *     - if not empty the print '{', line break & indent, print one value per\n line\n *       and then unindent and line break and print '}'.\n * - Array value:\n *     - if empty then print [] without indent and line break\n *     - if the array contains no object value, empty array or some other value\n types,\n *       and all the values fit on one lines, then print the array on a single\n line.\n *     - otherwise, it the values do not fit on one line, or the array contains\n *       object or non empty array, then print one value per line.\n *\n * If the Value have comments then they are outputted according to their\n #CommentPlacement.\n *\n * \\sa Reader, Value, Value::setComment()\n * \\deprecated Use StreamWriterBuilder.\n */\n#if defined(_MSC_VER)\n#pragma warning(push)\n#pragma warning(disable : 4996) // Deriving from deprecated class\n#endif\nclass JSON_API StyledStreamWriter {\npublic:\n  /**\n   * \\param indentation Each level will be indented by this amount extra.\n   */\n  StyledStreamWriter(String indentation = \"\\t\");\n  ~StyledStreamWriter() = default;\n\npublic:\n  /** \\brief Serialize a Value in <a HREF=\"http://www.json.org\">JSON</a> format.\n   * \\param out Stream to write to. (Can be ostringstream, e.g.)\n   * \\param root Value to serialize.\n   * \\note There is no point in deriving from Writer, since write() should not\n   * return a value.\n   */\n  void write(OStream& out, const Value& root);\n\nprivate:\n  void writeValue(const Value& value);\n  void writeArrayValue(const Value& value);\n  bool isMultilineArray(const Value& value);\n  void pushValue(const String& value);\n  void writeIndent();\n  void writeWithIndent(const String& value);\n  void indent();\n  void unindent();\n  void writeCommentBeforeValue(const Value& root);\n  void writeCommentAfterValueOnSameLine(const Value& root);\n  static bool hasCommentForValue(const Value& value);\n  static String normalizeEOL(const String& text);\n\n  using ChildValues = std::vector<String>;\n\n  ChildValues childValues_;\n  OStream* document_;\n  String indentString_;\n  unsigned int rightMargin_{74};\n  String indentation_;\n  bool addChildValues_ : 1;\n  bool indented_ : 1;\n};\n#if defined(_MSC_VER)\n#pragma warning(pop)\n#endif\n\n#if defined(JSON_HAS_INT64)\nString JSON_API valueToString(Int value);\nString JSON_API valueToString(UInt value);\n#endif // if defined(JSON_HAS_INT64)\nString JSON_API valueToString(LargestInt value);\nString JSON_API valueToString(LargestUInt value);\nString JSON_API valueToString(\n    double value, unsigned int precision = Value::defaultRealPrecision,\n    PrecisionType precisionType = PrecisionType::significantDigits);\nString JSON_API valueToString(bool value);\nString JSON_API valueToQuotedString(const char* value);\nString JSON_API valueToQuotedString(const char* value, size_t length);\n\n/// \\brief Output using the StyledStreamWriter.\n/// \\see Json::operator>>()\nJSON_API OStream& operator<<(OStream&, const Value& root);\n\n} // namespace Json\n\n#pragma pack(pop)\n\n#if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n#pragma warning(pop)\n#endif // if defined(JSONCPP_DISABLE_DLL_INTERFACE_WARNING)\n\n#endif // JSON_WRITER_H_INCLUDED\n"
  },
  {
    "path": "jsoncpp-namespaced-targets.cmake",
    "content": "if (NOT TARGET JsonCpp::JsonCpp)\n    if (TARGET jsoncpp_static)\n        add_library(JsonCpp::JsonCpp INTERFACE IMPORTED)\n        set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES \"jsoncpp_static\")\n    elseif (TARGET jsoncpp_lib)\n        add_library(JsonCpp::JsonCpp INTERFACE IMPORTED)\n        set_target_properties(JsonCpp::JsonCpp PROPERTIES INTERFACE_LINK_LIBRARIES \"jsoncpp_lib\")\n    endif ()\nendif ()\n"
  },
  {
    "path": "jsoncppConfig.cmake.in",
    "content": "cmake_policy(PUSH)\ncmake_policy(VERSION 3.0...3.26)\n\n@PACKAGE_INIT@\n\ninclude ( \"${CMAKE_CURRENT_LIST_DIR}/jsoncpp-targets.cmake\" )\ninclude ( \"${CMAKE_CURRENT_LIST_DIR}/jsoncpp-namespaced-targets.cmake\" )\n\ncheck_required_components(JsonCpp)\n\ncmake_policy(POP)\n"
  },
  {
    "path": "jsoncppConfig.cmake.meson.in",
    "content": "@PACKAGE_INIT@\n\n@MESON_SHARED_TARGET@\n@MESON_STATIC_TARGET@\n\ninclude ( \"${CMAKE_CURRENT_LIST_DIR}/jsoncpp-namespaced-targets.cmake\" )\n"
  },
  {
    "path": "meson.build",
    "content": "project(\n  'jsoncpp',\n  'cpp',\n\n  # Note: version must be updated in four places when doing a release. This\n  # annoying process ensures that amalgamate, CMake, and meson all report the\n  # correct version.\n  # 1. /meson.build\n  # 2. /include/json/version.h\n  # 3. /CMakeLists.txt\n  # 4. /MODULE.bazel\n  # IMPORTANT: also update the SOVERSION!!\n  version : '1.9.8',\n  default_options : [\n    'buildtype=release',\n    'cpp_std=c++11',\n    'warning_level=1'],\n  license : 'Public Domain',\n  meson_version : '>= 0.54.0')\n\n\njsoncpp_headers = files([\n  'include/json/allocator.h',\n  'include/json/assertions.h',\n  'include/json/config.h',\n  'include/json/json_features.h',\n  'include/json/forwards.h',\n  'include/json/json.h',\n  'include/json/reader.h',\n  'include/json/value.h',\n  'include/json/version.h',\n  'include/json/writer.h',\n])\njsoncpp_include_directories = include_directories('include')\n\ninstall_headers(\n  jsoncpp_headers,\n  subdir : 'json')\n\nif get_option('default_library') == 'shared' and meson.get_compiler('cpp').get_id() == 'msvc'\n  dll_export_flag = '-DJSON_DLL_BUILD'\n  dll_import_flag = '-DJSON_DLL'\nelse\n  dll_export_flag = []\n  dll_import_flag = []\nendif\n\njsoncpp_lib = library(\n  'jsoncpp', files([\n    'src/lib_json/json_reader.cpp',\n    'src/lib_json/json_value.cpp',\n    'src/lib_json/json_writer.cpp',\n  ]),\n  soversion : 27,\n  install : true,\n  include_directories : jsoncpp_include_directories,\n  cpp_args: dll_export_flag)\n\nimport('pkgconfig').generate(\n  libraries : jsoncpp_lib,\n  version : meson.project_version(),\n  name : 'jsoncpp',\n  filebase : 'jsoncpp',\n  description : 'A C++ library for interacting with JSON')\n\ncmakeconf = configuration_data()\ncmakeconf.set('MESON_LIB_DIR', get_option('libdir'))\ncmakeconf.set('MESON_INCLUDE_DIR', get_option('includedir'))\n\nfs = import('fs')\nif get_option('default_library') == 'shared'\n  shared_name = fs.name(jsoncpp_lib.full_path())\nendif\nif get_option('default_library') == 'static'\n  static_name = fs.name(jsoncpp_lib.full_path())\nendif\nif get_option('default_library') == 'both'\n  shared_name = fs.name(jsoncpp_lib.get_shared_lib().full_path())\n  static_name = fs.name(jsoncpp_lib.get_static_lib().full_path())\nendif\n\nif get_option('default_library') == 'shared' or get_option('default_library') == 'both'\n   cmakeconf.set('MESON_SHARED_TARGET', '''\nadd_library(jsoncpp_lib IMPORTED SHARED)\nset_target_properties(jsoncpp_lib PROPERTIES\n  IMPORTED_LOCATION \"''' + join_paths('${PACKAGE_PREFIX_DIR}', get_option('libdir'), shared_name) + '''\"\n  INTERFACE_INCLUDE_DIRECTORIES \"''' + join_paths('${PACKAGE_PREFIX_DIR}', get_option('includedir')) + '\")')\nendif\nif get_option('default_library') == 'static' or get_option('default_library') == 'both'\n   cmakeconf.set('MESON_STATIC_TARGET', '''\nadd_library(jsoncpp_static IMPORTED STATIC)\nset_target_properties(jsoncpp_static PROPERTIES\n  IMPORTED_LOCATION \"''' + join_paths('${PACKAGE_PREFIX_DIR}', get_option('libdir'), static_name) + '''\"\n  INTERFACE_INCLUDE_DIRECTORIES \"''' + join_paths('${PACKAGE_PREFIX_DIR}', get_option('includedir')) + '\")')\nendif\n\nimport('cmake').configure_package_config_file(\n  name: 'jsoncpp',\n  input: 'jsoncppConfig.cmake.meson.in',\n  configuration: cmakeconf)\ninstall_data('jsoncpp-namespaced-targets.cmake', install_dir : join_paths(get_option('libdir'), 'cmake', jsoncpp_lib.name()))\n\n# for libraries bundling jsoncpp\njsoncpp_dep = declare_dependency(\n  include_directories : jsoncpp_include_directories,\n  link_with : jsoncpp_lib,\n  version : meson.project_version())\n\n# tests\nif meson.is_subproject() or not get_option('tests')\n  subdir_done()\nendif\n\npython = find_program('python3')\n\njsoncpp_test = executable(\n  'jsoncpp_test', files([\n    'src/test_lib_json/jsontest.cpp',\n    'src/test_lib_json/main.cpp',\n    'src/test_lib_json/fuzz.cpp',\n  ]),\n  include_directories : jsoncpp_include_directories,\n  link_with : jsoncpp_lib,\n  install : false,\n  cpp_args: dll_import_flag)\ntest(\n  'unittest_jsoncpp_test',\n  jsoncpp_test)\n\njsontestrunner = executable(\n  'jsontestrunner',\n  'src/jsontestrunner/main.cpp',\n  include_directories : jsoncpp_include_directories,\n  link_with : jsoncpp_lib,\n  install : false,\n  cpp_args: dll_import_flag)\ntest(\n  'unittest_jsontestrunner',\n  python,\n  args : [\n    '-B',\n    join_paths(meson.current_source_dir(), 'test/runjsontests.py'),\n    jsontestrunner,\n    join_paths(meson.current_source_dir(), 'test/data')],\n  )\ntest(\n  'jsonchecker_jsontestrunner',\n  python,\n  is_parallel : false,\n  args : [\n    '-B',\n    join_paths(meson.current_source_dir(), 'test/runjsontests.py'),\n    '--with-json-checker',\n    jsontestrunner,\n    join_paths(meson.current_source_dir(), 'test/data')],\n    workdir : join_paths(meson.current_source_dir(), 'test/data'),\n  )\n"
  },
  {
    "path": "meson_options.txt",
    "content": "option(\n  'tests',\n  type : 'boolean',\n  value : true,\n  description : 'Enable building tests')\n"
  },
  {
    "path": "pkg-config/jsoncpp.pc.in",
    "content": "prefix=@CMAKE_INSTALL_PREFIX@\nexec_prefix=@CMAKE_INSTALL_PREFIX@\nlibdir=@libdir_for_pc_file@\nincludedir=@includedir_for_pc_file@\n\nName: jsoncpp\nDescription: A C++ library for interacting with JSON\nVersion: @PROJECT_VERSION@\nURL: https://github.com/open-source-parsers/jsoncpp\nLibs: -L${libdir} -ljsoncpp\nCflags: -I${includedir}\n"
  },
  {
    "path": "reformat.sh",
    "content": "find src -name '*.cpp' -or -name '*.h' | xargs clang-format -i\n"
  },
  {
    "path": "src/CMakeLists.txt",
    "content": "add_subdirectory(lib_json)\nif(JSONCPP_WITH_TESTS)\n    add_subdirectory(jsontestrunner)\n    add_subdirectory(test_lib_json)\nendif()\n"
  },
  {
    "path": "src/jsontestrunner/BUILD.bazel",
    "content": "load(\"@rules_cc//cc:cc_binary.bzl\", \"cc_binary\")\n\ncc_binary(\n    name = \"jsontestrunner\",\n    srcs = [\"main.cpp\"],\n    visibility = [\"//test:__pkg__\"],\n    deps = [\"//:jsoncpp\"],\n)\n"
  },
  {
    "path": "src/jsontestrunner/CMakeLists.txt",
    "content": "if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)\n    # The new Python3 module is much more robust than the previous PythonInterp\n    find_package(Python3 COMPONENTS Interpreter)\n    # Set variables for backwards compatibility with cmake < 3.12.0\n    set(PYTHONINTERP_FOUND ${Python3_Interpreter_FOUND})\n    set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})\nelse()\n    set(Python_ADDITIONAL_VERSIONS 3.8)\n    find_package(PythonInterp 3)\nendif()\n\nadd_executable(jsontestrunner_exe\n    main.cpp\n)\n\nif(BUILD_SHARED_LIBS)\n    if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)\n        add_compile_definitions( JSON_DLL )\n    else()\n        add_definitions(-DJSON_DLL)\n    endif()\n    target_link_libraries(jsontestrunner_exe jsoncpp_lib)\nelse()\n    target_link_libraries(jsontestrunner_exe jsoncpp_static)\nendif()\n\nset_target_properties(jsontestrunner_exe PROPERTIES OUTPUT_NAME jsontestrunner_exe)\n\nif(PYTHONINTERP_FOUND)\n    # Run end to end parser/writer tests\n    set(TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../test)\n    set(RUNJSONTESTS_PATH ${TEST_DIR}/runjsontests.py)\n\n    # Run unit tests in post-build\n    # (default cmake workflow hides away the test result into a file, resulting in poor dev workflow?!?)\n    add_custom_target(jsoncpp_readerwriter_tests\n        \"${PYTHON_EXECUTABLE}\" -B \"${RUNJSONTESTS_PATH}\" $<TARGET_FILE:jsontestrunner_exe> \"${TEST_DIR}/data\"\n        DEPENDS jsontestrunner_exe jsoncpp_test\n    )\n    add_custom_target(jsoncpp_check DEPENDS jsoncpp_readerwriter_tests)\n\n    ## Create tests for dashboard submission, allows easy review of CI results https://my.cdash.org/index.php?project=jsoncpp\n    add_test(NAME jsoncpp_readerwriter\n        COMMAND \"${PYTHON_EXECUTABLE}\" -B \"${RUNJSONTESTS_PATH}\" $<TARGET_FILE:jsontestrunner_exe> \"${TEST_DIR}/data\"\n        WORKING_DIRECTORY \"${TEST_DIR}/data\"\n    )\n    add_test(NAME jsoncpp_readerwriter_json_checker\n        COMMAND \"${PYTHON_EXECUTABLE}\" -B \"${RUNJSONTESTS_PATH}\" --with-json-checker  $<TARGET_FILE:jsontestrunner_exe> \"${TEST_DIR}/data\"\n        WORKING_DIRECTORY \"${TEST_DIR}/data\"\n    )\n\n    # Both tests write .actual/.actual-rewrite along with test data, need to prevent collision when running tests via ctest -j\n    set_tests_properties(jsoncpp_readerwriter jsoncpp_readerwriter_json_checker\n        PROPERTIES RESOURCE_LOCK \"test_data_files\"\n    )\nendif()\n"
  },
  {
    "path": "src/jsontestrunner/main.cpp",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#if defined(__GNUC__)\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wdeprecated-declarations\"\n#elif defined(_MSC_VER)\n#pragma warning(disable : 4996)\n#endif\n\n/* This executable is used for testing parser/writer using real JSON files.\n */\n\n#include <algorithm> // sort\n#include <cstdio>\n#include <iostream>\n#include <json/json.h>\n#include <memory>\n#include <sstream>\n\nstruct Options {\n  Json::String path;\n  Json::Features features;\n  bool parseOnly;\n  using writeFuncType = Json::String (*)(Json::Value const&);\n  writeFuncType write;\n};\n\nstatic Json::String normalizeFloatingPointStr(double value) {\n  char buffer[32];\n  jsoncpp_snprintf(buffer, sizeof(buffer), \"%.16g\", value);\n  buffer[sizeof(buffer) - 1] = 0;\n  Json::String s(buffer);\n  Json::String::size_type index = s.find_last_of(\"eE\");\n  if (index != Json::String::npos) {\n    Json::String::size_type hasSign =\n        (s[index + 1] == '+' || s[index + 1] == '-') ? 1 : 0;\n    Json::String::size_type exponentStartIndex = index + 1 + hasSign;\n    Json::String normalized = s.substr(0, exponentStartIndex);\n    Json::String::size_type indexDigit =\n        s.find_first_not_of('0', exponentStartIndex);\n    Json::String exponent = \"0\";\n    if (indexDigit != Json::String::npos) // There is an exponent different\n                                          // from 0\n    {\n      exponent = s.substr(indexDigit);\n    }\n    return normalized + exponent;\n  }\n  return s;\n}\n\nstatic Json::String readInputTestFile(const char* path) {\n  FILE* file = fopen(path, \"rb\");\n  if (!file)\n    return \"\";\n  fseek(file, 0, SEEK_END);\n  auto const size = ftell(file);\n  auto const usize = static_cast<size_t>(size);\n  fseek(file, 0, SEEK_SET);\n  auto buffer = new char[size + 1];\n  buffer[size] = 0;\n  Json::String text;\n  if (fread(buffer, 1, usize, file) == usize)\n    text = buffer;\n  fclose(file);\n  delete[] buffer;\n  return text;\n}\n\nstatic void printValueTree(FILE* fout, Json::Value& value,\n                           const Json::String& path = \".\") {\n  if (value.hasComment(Json::commentBefore)) {\n    fprintf(fout, \"%s\\n\", value.getComment(Json::commentBefore).c_str());\n  }\n  switch (value.type()) {\n  case Json::nullValue:\n    fprintf(fout, \"%s=null\\n\", path.c_str());\n    break;\n  case Json::intValue:\n    fprintf(fout, \"%s=%s\\n\", path.c_str(),\n            Json::valueToString(value.asLargestInt()).c_str());\n    break;\n  case Json::uintValue:\n    fprintf(fout, \"%s=%s\\n\", path.c_str(),\n            Json::valueToString(value.asLargestUInt()).c_str());\n    break;\n  case Json::realValue:\n    fprintf(fout, \"%s=%s\\n\", path.c_str(),\n            normalizeFloatingPointStr(value.asDouble()).c_str());\n    break;\n  case Json::stringValue:\n    fprintf(fout, \"%s=\\\"%s\\\"\\n\", path.c_str(), value.asString().c_str());\n    break;\n  case Json::booleanValue:\n    fprintf(fout, \"%s=%s\\n\", path.c_str(), value.asBool() ? \"true\" : \"false\");\n    break;\n  case Json::arrayValue: {\n    fprintf(fout, \"%s=[]\\n\", path.c_str());\n    Json::ArrayIndex size = value.size();\n    for (Json::ArrayIndex index = 0; index < size; ++index) {\n      static char buffer[16];\n      jsoncpp_snprintf(buffer, sizeof(buffer), \"[%u]\", index);\n      printValueTree(fout, value[index], path + buffer);\n    }\n  } break;\n  case Json::objectValue: {\n    fprintf(fout, \"%s={}\\n\", path.c_str());\n    Json::Value::Members members(value.getMemberNames());\n    std::sort(members.begin(), members.end());\n    Json::String suffix = *(path.end() - 1) == '.' ? \"\" : \".\";\n    for (const auto& name : members) {\n      printValueTree(fout, value[name], path + suffix + name);\n    }\n  } break;\n  default:\n    break;\n  }\n\n  if (value.hasComment(Json::commentAfter)) {\n    fprintf(fout, \"%s\\n\", value.getComment(Json::commentAfter).c_str());\n  }\n}\n\nstatic int parseAndSaveValueTree(const Json::String& input,\n                                 const Json::String& actual,\n                                 const Json::String& kind,\n                                 const Json::Features& features, bool parseOnly,\n                                 Json::Value* root, bool use_legacy) {\n  if (!use_legacy) {\n    Json::CharReaderBuilder builder;\n\n    builder.settings_[\"allowComments\"] = features.allowComments_;\n    builder.settings_[\"strictRoot\"] = features.strictRoot_;\n    builder.settings_[\"allowDroppedNullPlaceholders\"] =\n        features.allowDroppedNullPlaceholders_;\n    builder.settings_[\"allowNumericKeys\"] = features.allowNumericKeys_;\n\n    std::unique_ptr<Json::CharReader> reader(builder.newCharReader());\n    Json::String errors;\n    const bool parsingSuccessful =\n        reader->parse(input.data(), input.data() + input.size(), root, &errors);\n\n    if (!parsingSuccessful) {\n      std::cerr << \"Failed to parse \" << kind << \" file: \" << std::endl\n                << errors << std::endl;\n      return 1;\n    }\n\n    // We may instead check the legacy implementation (to ensure it doesn't\n    // randomly get broken).\n  } else {\n    Json::Reader reader(features);\n    const bool parsingSuccessful =\n        reader.parse(input.data(), input.data() + input.size(), *root);\n    if (!parsingSuccessful) {\n      std::cerr << \"Failed to parse \" << kind << \" file: \" << std::endl\n                << reader.getFormatedErrorMessages() << std::endl;\n      return 1;\n    }\n  }\n\n  if (!parseOnly) {\n    FILE* factual = fopen(actual.c_str(), \"wt\");\n    if (!factual) {\n      std::cerr << \"Failed to create '\" << kind << \"' actual file.\"\n                << std::endl;\n      return 2;\n    }\n    printValueTree(factual, *root);\n    fclose(factual);\n  }\n  return 0;\n}\n// static Json::String useFastWriter(Json::Value const& root) {\n//   Json::FastWriter writer;\n//   writer.enableYAMLCompatibility();\n//   return writer.write(root);\n// }\nstatic Json::String useStyledWriter(Json::Value const& root) {\n  Json::StyledWriter writer;\n  return writer.write(root);\n}\nstatic Json::String useStyledStreamWriter(Json::Value const& root) {\n  Json::StyledStreamWriter writer;\n  Json::OStringStream sout;\n  writer.write(sout, root);\n  return sout.str();\n}\nstatic Json::String useBuiltStyledStreamWriter(Json::Value const& root) {\n  Json::StreamWriterBuilder builder;\n  return Json::writeString(builder, root);\n}\nstatic int rewriteValueTree(const Json::String& rewritePath,\n                            const Json::Value& root,\n                            Options::writeFuncType write,\n                            Json::String* rewrite) {\n  *rewrite = write(root);\n  FILE* fout = fopen(rewritePath.c_str(), \"wt\");\n  if (!fout) {\n    std::cerr << \"Failed to create rewrite file: \" << rewritePath << std::endl;\n    return 2;\n  }\n  fprintf(fout, \"%s\\n\", rewrite->c_str());\n  fclose(fout);\n  return 0;\n}\n\nstatic Json::String removeSuffix(const Json::String& path,\n                                 const Json::String& extension) {\n  if (extension.length() >= path.length())\n    return Json::String(\"\");\n  Json::String suffix = path.substr(path.length() - extension.length());\n  if (suffix != extension)\n    return Json::String(\"\");\n  return path.substr(0, path.length() - extension.length());\n}\n\nstatic void printConfig() {\n// Print the configuration used to compile JsonCpp\n#if defined(JSON_NO_INT64)\n  std::cout << \"JSON_NO_INT64=1\" << std::endl;\n#else\n  std::cout << \"JSON_NO_INT64=0\" << std::endl;\n#endif\n}\n\nstatic int printUsage(const char* argv[]) {\n  std::cout << \"Usage: \" << argv[0] << \" [--strict] input-json-file\"\n            << std::endl;\n  return 3;\n}\n\nstatic int parseCommandLine(int argc, const char* argv[], Options* opts) {\n  opts->parseOnly = false;\n  opts->write = &useStyledWriter;\n  if (argc < 2) {\n    return printUsage(argv);\n  }\n  int index = 1;\n  if (Json::String(argv[index]) == \"--parse-only\") {\n    opts->parseOnly = true;\n    ++index;\n  }\n  if (Json::String(argv[index]) == \"--strict\") {\n    opts->features = Json::Features::strictMode();\n    ++index;\n  }\n  if (Json::String(argv[index]) == \"--json-config\") {\n    printConfig();\n    return 3;\n  }\n  if (Json::String(argv[index]) == \"--json-writer\") {\n    ++index;\n    Json::String const writerName(argv[index++]);\n    if (writerName == \"StyledWriter\") {\n      opts->write = &useStyledWriter;\n    } else if (writerName == \"StyledStreamWriter\") {\n      opts->write = &useStyledStreamWriter;\n    } else if (writerName == \"BuiltStyledStreamWriter\") {\n      opts->write = &useBuiltStyledStreamWriter;\n    } else {\n      std::cerr << \"Unknown '--json-writer' \" << writerName << std::endl;\n      return 4;\n    }\n  }\n  if (index == argc || index + 1 < argc) {\n    return printUsage(argv);\n  }\n  opts->path = argv[index];\n  return 0;\n}\n\nstatic int runTest(Options const& opts, bool use_legacy) {\n  int exitCode = 0;\n\n  Json::String input = readInputTestFile(opts.path.c_str());\n  if (input.empty()) {\n    std::cerr << \"Invalid input file: \" << opts.path << std::endl;\n    return 3;\n  }\n\n  Json::String basePath = removeSuffix(opts.path, \".json\");\n  if (!opts.parseOnly && basePath.empty()) {\n    std::cerr << \"Bad input path '\" << opts.path\n              << \"'. Must end with '.expected'\" << std::endl;\n    return 3;\n  }\n\n  Json::String const actualPath = basePath + \".actual\";\n  Json::String const rewritePath = basePath + \".rewrite\";\n  Json::String const rewriteActualPath = basePath + \".actual-rewrite\";\n\n  Json::Value root;\n  exitCode = parseAndSaveValueTree(input, actualPath, \"input\", opts.features,\n                                   opts.parseOnly, &root, use_legacy);\n  if (exitCode || opts.parseOnly) {\n    return exitCode;\n  }\n\n  Json::String rewrite;\n  exitCode = rewriteValueTree(rewritePath, root, opts.write, &rewrite);\n  if (exitCode) {\n    return exitCode;\n  }\n\n  Json::Value rewriteRoot;\n  exitCode = parseAndSaveValueTree(rewrite, rewriteActualPath, \"rewrite\",\n                                   opts.features, opts.parseOnly, &rewriteRoot,\n                                   use_legacy);\n\n  return exitCode;\n}\n\nint main(int argc, const char* argv[]) {\n  Options opts;\n  try {\n    int exitCode = parseCommandLine(argc, argv, &opts);\n    if (exitCode != 0) {\n      std::cerr << \"Failed to parse command-line.\" << std::endl;\n      return exitCode;\n    }\n\n    const int modern_return_code = runTest(opts, false);\n    if (modern_return_code) {\n      return modern_return_code;\n    }\n\n    const std::string filename =\n        opts.path.substr(opts.path.find_last_of(\"\\\\/\") + 1);\n    const bool should_run_legacy = (filename.rfind(\"legacy_\", 0) == 0);\n    if (should_run_legacy) {\n      return runTest(opts, true);\n    }\n  } catch (const std::exception& e) {\n    std::cerr << \"Unhandled exception:\" << std::endl << e.what() << std::endl;\n    return 1;\n  }\n  return 0;\n}\n\n#if defined(__GNUC__)\n#pragma GCC diagnostic pop\n#endif\n"
  },
  {
    "path": "src/lib_json/CMakeLists.txt",
    "content": "if(CMAKE_CXX_COMPILER_ID STREQUAL \"GNU\" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.1.2)\n    #-Werror=* was introduced -after- GCC 4.1.2\n    add_compile_options(\"-Werror=strict-aliasing\")\nendif()\n\ninclude(CheckIncludeFileCXX)\ninclude(CheckTypeSize)\ninclude(CheckStructHasMember)\ninclude(CheckCXXSymbolExists)\ninclude(CheckCXXSourceCompiles)\n\ncheck_include_file_cxx(clocale HAVE_CLOCALE)\ncheck_cxx_symbol_exists(localeconv clocale HAVE_LOCALECONV)\n\nset(CMAKE_EXTRA_INCLUDE_FILES clocale)\ncheck_type_size(lconv LCONV_SIZE LANGUAGE CXX)\nunset(CMAKE_EXTRA_INCLUDE_FILES)\ncheck_struct_has_member(lconv decimal_point clocale HAVE_DECIMAL_POINT LANGUAGE CXX)\n\nif(NOT (HAVE_CLOCALE AND HAVE_LCONV_SIZE AND HAVE_DECIMAL_POINT AND HAVE_LOCALECONV))\n    message(WARNING \"Locale functionality is not supported\")\n    if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)\n        add_compile_definitions(JSONCPP_NO_LOCALE_SUPPORT)\n    else()\n        add_definitions(-DJSONCPP_NO_LOCALE_SUPPORT)\n    endif()\nendif()\n\ncheck_cxx_source_compiles(\n    \"#include <string_view>\n     int main() { std::string_view sv; return 0; }\"\n    JSONCPP_HAS_STRING_VIEW)\n\nset(JSONCPP_INCLUDE_DIR ../../include)\n\nset(PUBLIC_HEADERS\n    ${JSONCPP_INCLUDE_DIR}/json/config.h\n    ${JSONCPP_INCLUDE_DIR}/json/forwards.h\n    ${JSONCPP_INCLUDE_DIR}/json/json_features.h\n    ${JSONCPP_INCLUDE_DIR}/json/value.h\n    ${JSONCPP_INCLUDE_DIR}/json/reader.h\n    ${JSONCPP_INCLUDE_DIR}/json/version.h\n    ${JSONCPP_INCLUDE_DIR}/json/writer.h\n    ${JSONCPP_INCLUDE_DIR}/json/assertions.h\n)\n\nsource_group(\"Public API\" FILES ${PUBLIC_HEADERS})\n\nset(JSONCPP_SOURCES\n    json_tool.h\n    json_reader.cpp\n    json_valueiterator.inl\n    json_value.cpp\n    json_writer.cpp\n)\n\n# Install instructions for this target\nif(JSONCPP_WITH_CMAKE_PACKAGE)\n    set(INSTALL_EXPORT EXPORT jsoncpp)\nelse()\n    set(INSTALL_EXPORT)\nendif()\n\n# Specify compiler features required when compiling a given target.\n# See https://cmake.org/cmake/help/v3.1/prop_gbl/CMAKE_CXX_KNOWN_FEATURES.html#prop_gbl:CMAKE_CXX_KNOWN_FEATURES\n# for complete list of features available\nlist(APPEND REQUIRED_FEATURES\n        cxx_std_11 # Compiler mode is aware of C++ 11.\n        #MSVC 1900 cxx_alignas # Alignment control alignas, as defined in N2341.\n        #MSVC 1900 cxx_alignof # Alignment control alignof, as defined in N2341.\n        #MSVC 1900 cxx_attributes # Generic attributes, as defined in N2761.\n        cxx_auto_type # Automatic type deduction, as defined in N1984.\n        #MSVC 1900 cxx_constexpr # Constant expressions, as defined in N2235.\n        cxx_decltype # Decltype, as defined in N2343.\n        cxx_default_function_template_args # Default template arguments for function templates, as defined in DR226\n        cxx_defaulted_functions # Defaulted functions, as defined in N2346.\n        #MSVC 1900 cxx_defaulted_move_initializers # Defaulted move initializers, as defined in N3053.\n        cxx_delegating_constructors # Delegating constructors, as defined in N1986.\n        #MSVC 1900 cxx_deleted_functions # Deleted functions, as defined in N2346.\n        cxx_enum_forward_declarations # Enum forward declarations, as defined in N2764.\n        cxx_explicit_conversions # Explicit conversion operators, as defined in N2437.\n        cxx_extended_friend_declarations # Extended friend declarations, as defined in N1791.\n        cxx_extern_templates # Extern templates, as defined in N1987.\n        cxx_final # Override control final keyword, as defined in N2928, N3206 and N3272.\n        #MSVC 1900 cxx_func_identifier # Predefined __func__ identifier, as defined in N2340.\n        #MSVC 1900 cxx_generalized_initializers # Initializer lists, as defined in N2672.\n        #MSVC 1900 cxx_inheriting_constructors # Inheriting constructors, as defined in N2540.\n        #MSVC 1900 cxx_inline_namespaces # Inline namespaces, as defined in N2535.\n        cxx_lambdas # Lambda functions, as defined in N2927.\n        #MSVC 1900 cxx_local_type_template_args # Local and unnamed types as template arguments, as defined in N2657.\n        cxx_long_long_type # long long type, as defined in N1811.\n        #MSVC 1900 cxx_noexcept # Exception specifications, as defined in N3050.\n        #MSVC 1900 cxx_nonstatic_member_init # Non-static data member initialization, as defined in N2756.\n        cxx_nullptr # Null pointer, as defined in N2431.\n        cxx_override # Override control override keyword, as defined in N2928, N3206 and N3272.\n        cxx_range_for # Range-based for, as defined in N2930.\n        cxx_raw_string_literals # Raw string literals, as defined in N2442.\n        #MSVC 1900 cxx_reference_qualified_functions # Reference qualified functions, as defined in N2439.\n        cxx_right_angle_brackets # Right angle bracket parsing, as defined in N1757.\n        cxx_rvalue_references # R-value references, as defined in N2118.\n        #MSVC 1900 cxx_sizeof_member # Size of non-static data members, as defined in N2253.\n        cxx_static_assert # Static assert, as defined in N1720.\n        cxx_strong_enums # Strongly typed enums, as defined in N2347.\n        #MSVC 1900 cxx_thread_local # Thread-local variables, as defined in N2659.\n        cxx_trailing_return_types # Automatic function return type, as defined in N2541.\n        #MSVC 1900 cxx_unicode_literals # Unicode string literals, as defined in N2442.\n        cxx_uniform_initialization # Uniform initialization, as defined in N2640.\n        #MSVC 1900 cxx_unrestricted_unions # Unrestricted unions, as defined in N2544.\n        #MSVC 1900 cxx_user_literals # User-defined literals, as defined in N2765.\n        cxx_variadic_macros # Variadic macros, as defined in N1653.\n        cxx_variadic_templates # Variadic templates, as defined in N2242.\n)\n\n\nif(BUILD_SHARED_LIBS)\n    set(SHARED_LIB ${PROJECT_NAME}_lib)\n    add_library(${SHARED_LIB} SHARED ${PUBLIC_HEADERS} ${JSONCPP_SOURCES})\n    set_target_properties(${SHARED_LIB} PROPERTIES\n        OUTPUT_NAME jsoncpp\n        VERSION ${PROJECT_VERSION}\n        SOVERSION ${PROJECT_SOVERSION}\n        POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS}\n    )\n\n    target_compile_definitions(${SHARED_LIB} PRIVATE JSON_DLL_BUILD)\n\n    # Set library's runtime search path on OSX\n    if(APPLE)\n        set_target_properties(${SHARED_LIB} PROPERTIES INSTALL_RPATH \"@loader_path/.\")\n    endif()\n\n    target_compile_features(${SHARED_LIB} PUBLIC ${REQUIRED_FEATURES})\n\n    if(JSONCPP_HAS_STRING_VIEW)\n        target_compile_definitions(${SHARED_LIB} PUBLIC JSONCPP_HAS_STRING_VIEW=1)\n    endif()\n\n    target_include_directories(${SHARED_LIB} PUBLIC\n        $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>\n        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/${JSONCPP_INCLUDE_DIR}>\n    )\n\n    list(APPEND CMAKE_TARGETS ${SHARED_LIB})\nendif()\n\nif(BUILD_STATIC_LIBS)\n    set(STATIC_LIB ${PROJECT_NAME}_static)\n    add_library(${STATIC_LIB} STATIC ${PUBLIC_HEADERS} ${JSONCPP_SOURCES})\n\n    # avoid name clashes on windows as the shared import lib is also named jsoncpp.lib\n    if(NOT DEFINED STATIC_SUFFIX AND BUILD_SHARED_LIBS)\n        if (MSVC OR (\"${CMAKE_C_SIMULATE_ID}\" STREQUAL \"MSVC\"))\n            set(STATIC_SUFFIX \"_static\")\n        else()\n            set(STATIC_SUFFIX \"\")\n        endif()\n    endif()\n\n    set_target_properties(${STATIC_LIB} PROPERTIES\n        OUTPUT_NAME jsoncpp${STATIC_SUFFIX}\n        VERSION ${PROJECT_VERSION}\n    )\n\n    # Set library's runtime search path on OSX\n    if(APPLE)\n        set_target_properties(${STATIC_LIB} PROPERTIES INSTALL_RPATH \"@loader_path/.\")\n    endif()\n\n    target_compile_features(${STATIC_LIB} PUBLIC ${REQUIRED_FEATURES})\n\n    if(JSONCPP_HAS_STRING_VIEW)\n        target_compile_definitions(${STATIC_LIB} PUBLIC JSONCPP_HAS_STRING_VIEW=1)\n    endif()\n\n    target_include_directories(${STATIC_LIB} PUBLIC\n        $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>\n        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/${JSONCPP_INCLUDE_DIR}>\n    )\n\n    list(APPEND CMAKE_TARGETS ${STATIC_LIB})\nendif()\n\nif(BUILD_OBJECT_LIBS)\n    set(OBJECT_LIB ${PROJECT_NAME}_object)\n    add_library(${OBJECT_LIB} OBJECT ${PUBLIC_HEADERS} ${JSONCPP_SOURCES})\n\n    set_target_properties(${OBJECT_LIB} PROPERTIES\n        OUTPUT_NAME jsoncpp\n        VERSION ${PROJECT_VERSION}\n        SOVERSION ${PROJECT_SOVERSION}\n        POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS}\n    )\n\n    # Set library's runtime search path on OSX\n    if(APPLE)\n        set_target_properties(${OBJECT_LIB} PROPERTIES INSTALL_RPATH \"@loader_path/.\")\n    endif()\n\n    target_compile_features(${OBJECT_LIB} PUBLIC ${REQUIRED_FEATURES})\n\n    if(JSONCPP_HAS_STRING_VIEW)\n        target_compile_definitions(${OBJECT_LIB} PUBLIC JSONCPP_HAS_STRING_VIEW=1)\n    endif()\n\n    target_include_directories(${OBJECT_LIB} PUBLIC\n        $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>\n        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/${JSONCPP_INCLUDE_DIR}>\n    )\n\n    list(APPEND CMAKE_TARGETS ${OBJECT_LIB})\nendif()\n\nif (JSONCPP_WITH_INSTALL)\n\ninstall(TARGETS ${CMAKE_TARGETS} ${INSTALL_EXPORT}\n    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}\n    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}\n    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}\n    OBJECTS DESTINATION ${CMAKE_INSTALL_LIBDIR}\n)\n\nendif()\n"
  },
  {
    "path": "src/lib_json/json_reader.cpp",
    "content": "// Copyright 2007-2011 Baptiste Lepilleur and The JsonCpp Authors\n// Copyright (C) 2016 InfoTeCS JSC. All rights reserved.\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"json_tool.h\"\n#include <json/assertions.h>\n#include <json/reader.h>\n#include <json/value.h>\n#endif // if !defined(JSON_IS_AMALGAMATION)\n#include <algorithm>\n#include <cassert>\n#include <cmath>\n#include <cstring>\n#include <iostream>\n#include <istream>\n#include <iterator>\n#include <limits>\n#include <memory>\n#include <set>\n#include <sstream>\n#include <utility>\n\n#include <cstdio>\n\n#if defined(_MSC_VER)\n#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)\n#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1\n#endif //_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES\n#endif //_MSC_VER\n\n#if defined(_MSC_VER)\n// Disable warning about strdup being deprecated.\n#pragma warning(disable : 4996)\n#endif\n\n// Define JSONCPP_DEPRECATED_STACK_LIMIT as an appropriate integer at compile\n// time to change the stack limit\n#if !defined(JSONCPP_DEPRECATED_STACK_LIMIT)\n#define JSONCPP_DEPRECATED_STACK_LIMIT 256\n#endif\n\nstatic size_t const stackLimit_g =\n    JSONCPP_DEPRECATED_STACK_LIMIT; // see readValue()\n\nnamespace Json {\n\nusing CharReaderPtr = std::unique_ptr<CharReader>;\n\n// Implementation of class Features\n// ////////////////////////////////\n\nFeatures::Features() = default;\n\nFeatures Features::all() { return {}; }\n\nFeatures Features::strictMode() {\n  Features features;\n  features.allowComments_ = false;\n  features.strictRoot_ = true;\n  features.allowDroppedNullPlaceholders_ = false;\n  features.allowNumericKeys_ = false;\n  return features;\n}\n\n// Implementation of class Reader\n// ////////////////////////////////\n\nbool Reader::containsNewLine(Reader::Location begin, Reader::Location end) {\n  return std::any_of(begin, end, [](char b) { return b == '\\n' || b == '\\r'; });\n}\n\n// Class Reader\n// //////////////////////////////////////////////////////////////////\n\nReader::Reader() : features_(Features::all()) {}\n\nReader::Reader(const Features& features) : features_(features) {}\n\nbool Reader::parse(const std::string& document, Value& root,\n                   bool collectComments) {\n  document_.assign(document.begin(), document.end());\n  const char* begin = document_.c_str();\n  const char* end = begin + document_.length();\n  return parse(begin, end, root, collectComments);\n}\n\nbool Reader::parse(std::istream& is, Value& root, bool collectComments) {\n  document_.assign(std::istreambuf_iterator<char>(is),\n                   std::istreambuf_iterator<char>());\n  return parse(document_.data(), document_.data() + document_.size(), root,\n               collectComments);\n}\n\nbool Reader::parse(const char* beginDoc, const char* endDoc, Value& root,\n                   bool collectComments) {\n  if (!features_.allowComments_) {\n    collectComments = false;\n  }\n\n  begin_ = beginDoc;\n  end_ = endDoc;\n  collectComments_ = collectComments;\n  current_ = begin_;\n  lastValueEnd_ = nullptr;\n  lastValue_ = nullptr;\n  commentsBefore_.clear();\n  errors_.clear();\n  while (!nodes_.empty())\n    nodes_.pop();\n  nodes_.push(&root);\n\n  bool successful = readValue();\n  Token token;\n  readTokenSkippingComments(token);\n  if (collectComments_ && !commentsBefore_.empty())\n    root.setComment(commentsBefore_, commentAfter);\n  if (features_.strictRoot_) {\n    if (!root.isArray() && !root.isObject()) {\n      // Set error location to start of doc, ideally should be first token found\n      // in doc\n      token.type_ = tokenError;\n      token.start_ = beginDoc;\n      token.end_ = endDoc;\n      addError(\n          \"A valid JSON document must be either an array or an object value.\",\n          token);\n      return false;\n    }\n  }\n  return successful;\n}\n\nbool Reader::readValue() {\n  // readValue() may call itself only if it calls readObject() or ReadArray().\n  // These methods execute nodes_.push() just before and nodes_.pop)() just\n  // after calling readValue(). parse() executes one nodes_.push(), so > instead\n  // of >=.\n  if (nodes_.size() > stackLimit_g)\n#if JSON_USE_EXCEPTION\n    throwRuntimeError(\"Exceeded stackLimit in readValue().\");\n#else\n    // throwRuntimeError aborts. Don't abort here.\n    return false;\n#endif\n\n  Token token;\n  readTokenSkippingComments(token);\n  bool successful = true;\n\n  if (collectComments_ && !commentsBefore_.empty()) {\n    currentValue().setComment(commentsBefore_, commentBefore);\n    commentsBefore_.clear();\n  }\n\n  switch (token.type_) {\n  case tokenObjectBegin:\n    successful = readObject(token);\n    currentValue().setOffsetLimit(current_ - begin_);\n    break;\n  case tokenArrayBegin:\n    successful = readArray(token);\n    currentValue().setOffsetLimit(current_ - begin_);\n    break;\n  case tokenNumber:\n    successful = decodeNumber(token);\n    break;\n  case tokenString:\n    successful = decodeString(token);\n    break;\n  case tokenTrue: {\n    Value v(true);\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenFalse: {\n    Value v(false);\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenNull: {\n    Value v;\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenArraySeparator:\n  case tokenObjectEnd:\n  case tokenArrayEnd:\n    if (features_.allowDroppedNullPlaceholders_) {\n      // \"Un-read\" the current token and mark the current value as a null\n      // token.\n      current_--;\n      Value v;\n      currentValue().swapPayload(v);\n      currentValue().setOffsetStart(current_ - begin_ - 1);\n      currentValue().setOffsetLimit(current_ - begin_);\n      break;\n    } // Else, fall through...\n  default:\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n    return addError(\"Syntax error: value, object or array expected.\", token);\n  }\n\n  if (collectComments_) {\n    lastValueEnd_ = current_;\n    lastValue_ = &currentValue();\n  }\n\n  return successful;\n}\n\nbool Reader::readTokenSkippingComments(Token& token) {\n  bool success = readToken(token);\n  if (features_.allowComments_) {\n    while (success && token.type_ == tokenComment) {\n      success = readToken(token);\n    }\n  }\n  return success;\n}\n\nbool Reader::readToken(Token& token) {\n  skipSpaces();\n  token.start_ = current_;\n  Char c = getNextChar();\n  bool ok = true;\n  switch (c) {\n  case '{':\n    token.type_ = tokenObjectBegin;\n    break;\n  case '}':\n    token.type_ = tokenObjectEnd;\n    break;\n  case '[':\n    token.type_ = tokenArrayBegin;\n    break;\n  case ']':\n    token.type_ = tokenArrayEnd;\n    break;\n  case '\"':\n    token.type_ = tokenString;\n    ok = readString();\n    break;\n  case '/':\n    token.type_ = tokenComment;\n    ok = readComment();\n    break;\n  case '0':\n  case '1':\n  case '2':\n  case '3':\n  case '4':\n  case '5':\n  case '6':\n  case '7':\n  case '8':\n  case '9':\n  case '-':\n    token.type_ = tokenNumber;\n    readNumber();\n    break;\n  case 't':\n    token.type_ = tokenTrue;\n    ok = match(\"rue\", 3);\n    break;\n  case 'f':\n    token.type_ = tokenFalse;\n    ok = match(\"alse\", 4);\n    break;\n  case 'n':\n    token.type_ = tokenNull;\n    ok = match(\"ull\", 3);\n    break;\n  case ',':\n    token.type_ = tokenArraySeparator;\n    break;\n  case ':':\n    token.type_ = tokenMemberSeparator;\n    break;\n  case 0:\n    token.type_ = tokenEndOfStream;\n    break;\n  default:\n    ok = false;\n    break;\n  }\n  if (!ok)\n    token.type_ = tokenError;\n  token.end_ = current_;\n  return ok;\n}\n\nvoid Reader::skipSpaces() {\n  while (current_ != end_) {\n    Char c = *current_;\n    if (c == ' ' || c == '\\t' || c == '\\r' || c == '\\n')\n      ++current_;\n    else\n      break;\n  }\n}\n\nbool Reader::match(const Char* pattern, int patternLength) {\n  if (end_ - current_ < patternLength)\n    return false;\n  int index = patternLength;\n  while (index--)\n    if (current_[index] != pattern[index])\n      return false;\n  current_ += patternLength;\n  return true;\n}\n\nbool Reader::readComment() {\n  Location commentBegin = current_ - 1;\n  Char c = getNextChar();\n  bool successful = false;\n  if (c == '*')\n    successful = readCStyleComment();\n  else if (c == '/')\n    successful = readCppStyleComment();\n  if (!successful)\n    return false;\n\n  if (collectComments_) {\n    CommentPlacement placement = commentBefore;\n    if (lastValueEnd_ && !containsNewLine(lastValueEnd_, commentBegin)) {\n      if (c != '*' || !containsNewLine(commentBegin, current_))\n        placement = commentAfterOnSameLine;\n    }\n\n    addComment(commentBegin, current_, placement);\n  }\n  return true;\n}\n\nString Reader::normalizeEOL(Reader::Location begin, Reader::Location end) {\n  String normalized;\n  normalized.reserve(static_cast<size_t>(end - begin));\n  Reader::Location current = begin;\n  while (current != end) {\n    char c = *current++;\n    if (c == '\\r') {\n      if (current != end && *current == '\\n')\n        // convert dos EOL\n        ++current;\n      // convert Mac EOL\n      normalized += '\\n';\n    } else {\n      normalized += c;\n    }\n  }\n  return normalized;\n}\n\nvoid Reader::addComment(Location begin, Location end,\n                        CommentPlacement placement) {\n  assert(collectComments_);\n  const String& normalized = normalizeEOL(begin, end);\n  if (placement == commentAfterOnSameLine) {\n    assert(lastValue_ != nullptr);\n    lastValue_->setComment(normalized, placement);\n  } else {\n    commentsBefore_ += normalized;\n  }\n}\n\nbool Reader::readCStyleComment() {\n  while ((current_ + 1) < end_) {\n    Char c = getNextChar();\n    if (c == '*' && *current_ == '/')\n      break;\n  }\n  return getNextChar() == '/';\n}\n\nbool Reader::readCppStyleComment() {\n  while (current_ != end_) {\n    Char c = getNextChar();\n    if (c == '\\n')\n      break;\n    if (c == '\\r') {\n      // Consume DOS EOL. It will be normalized in addComment.\n      if (current_ != end_ && *current_ == '\\n')\n        getNextChar();\n      // Break on Moc OS 9 EOL.\n      break;\n    }\n  }\n  return true;\n}\n\nvoid Reader::readNumber() {\n  Location p = current_;\n  char c = '0'; // stopgap for already consumed character\n  // integral part\n  while (c >= '0' && c <= '9')\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n  // fractional part\n  if (c == '.') {\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n    while (c >= '0' && c <= '9')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n  }\n  // exponential part\n  if (c == 'e' || c == 'E') {\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n    if (c == '+' || c == '-')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n    while (c >= '0' && c <= '9')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n  }\n}\n\nbool Reader::readString() {\n  Char c = '\\0';\n  while (current_ != end_) {\n    c = getNextChar();\n    if (c == '\\\\')\n      getNextChar();\n    else if (c == '\"')\n      break;\n  }\n  return c == '\"';\n}\n\nbool Reader::readObject(Token& token) {\n  Token tokenName;\n  String name;\n  Value init(objectValue);\n  currentValue().swapPayload(init);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  while (readTokenSkippingComments(tokenName)) {\n    if (tokenName.type_ == tokenObjectEnd && name.empty()) // empty object\n      return true;\n    name.clear();\n    if (tokenName.type_ == tokenString) {\n      if (!decodeString(tokenName, name))\n        return recoverFromError(tokenObjectEnd);\n    } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) {\n      Value numberName;\n      if (!decodeNumber(tokenName, numberName))\n        return recoverFromError(tokenObjectEnd);\n      name = numberName.asString();\n    } else {\n      break;\n    }\n\n    Token colon;\n    if (!readToken(colon) || colon.type_ != tokenMemberSeparator) {\n      return addErrorAndRecover(\"Missing ':' after object member name\", colon,\n                                tokenObjectEnd);\n    }\n    Value& value = currentValue()[name];\n    nodes_.push(&value);\n    bool ok = readValue();\n    nodes_.pop();\n    if (!ok) // error already set\n      return recoverFromError(tokenObjectEnd);\n\n    Token comma;\n    if (!readTokenSkippingComments(comma) ||\n        (comma.type_ != tokenObjectEnd && comma.type_ != tokenArraySeparator)) {\n      return addErrorAndRecover(\"Missing ',' or '}' in object declaration\",\n                                comma, tokenObjectEnd);\n    }\n    if (comma.type_ == tokenObjectEnd)\n      return true;\n  }\n  return addErrorAndRecover(\"Missing '}' or object member name\", tokenName,\n                            tokenObjectEnd);\n}\n\nbool Reader::readArray(Token& token) {\n  Value init(arrayValue);\n  currentValue().swapPayload(init);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  skipSpaces();\n  if (current_ != end_ && *current_ == ']') // empty array\n  {\n    Token endArray;\n    readToken(endArray);\n    return true;\n  }\n  int index = 0;\n  for (;;) {\n    Value& value = currentValue()[index++];\n    nodes_.push(&value);\n    bool ok = readValue();\n    nodes_.pop();\n    if (!ok) // error already set\n      return recoverFromError(tokenArrayEnd);\n\n    Token currentToken;\n    // Accept Comment after last item in the array.\n    ok = readTokenSkippingComments(currentToken);\n    bool badTokenType = (currentToken.type_ != tokenArraySeparator &&\n                         currentToken.type_ != tokenArrayEnd);\n    if (!ok || badTokenType) {\n      return addErrorAndRecover(\"Missing ',' or ']' in array declaration\",\n                                currentToken, tokenArrayEnd);\n    }\n    if (currentToken.type_ == tokenArrayEnd)\n      break;\n  }\n  return true;\n}\n\nbool Reader::decodeNumber(Token& token) {\n  Value decoded;\n  if (!decodeNumber(token, decoded))\n    return false;\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool Reader::decodeNumber(Token& token, Value& decoded) {\n  // Attempts to parse the number as an integer. If the number is\n  // larger than the maximum supported value of an integer then\n  // we decode the number as a double.\n  Location current = token.start_;\n  bool isNegative = *current == '-';\n  if (isNegative)\n    ++current;\n  // TODO: Help the compiler do the div and mod at compile time or get rid of\n  // them.\n  Value::LargestUInt maxIntegerValue =\n      isNegative ? Value::LargestUInt(Value::maxLargestInt) + 1\n                 : Value::maxLargestUInt;\n  Value::LargestUInt threshold = maxIntegerValue / 10;\n  Value::LargestUInt value = 0;\n  while (current < token.end_) {\n    Char c = *current++;\n    if (c < '0' || c > '9')\n      return decodeDouble(token, decoded);\n    auto digit(static_cast<Value::UInt>(c - '0'));\n    if (value >= threshold) {\n      // We've hit or exceeded the max value divided by 10 (rounded down). If\n      // a) we've only just touched the limit, b) this is the last digit, and\n      // c) it's small enough to fit in that rounding delta, we're okay.\n      // Otherwise treat this number as a double to avoid overflow.\n      if (value > threshold || current != token.end_ ||\n          digit > maxIntegerValue % 10) {\n        return decodeDouble(token, decoded);\n      }\n    }\n    value = value * 10 + digit;\n  }\n  if (isNegative && value == maxIntegerValue)\n    decoded = Value::minLargestInt;\n  else if (isNegative)\n    decoded = -Value::LargestInt(value);\n  else if (value <= Value::LargestUInt(Value::maxInt))\n    decoded = Value::LargestInt(value);\n  else\n    decoded = value;\n  return true;\n}\n\nbool Reader::decodeDouble(Token& token) {\n  Value decoded;\n  if (!decodeDouble(token, decoded))\n    return false;\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool Reader::decodeDouble(Token& token, Value& decoded) {\n  double value = 0;\n  IStringStream is(String(token.start_, token.end_));\n  is.imbue(std::locale::classic());\n  if (!(is >> value)) {\n    if (value == std::numeric_limits<double>::max())\n      value = std::numeric_limits<double>::infinity();\n    else if (value == std::numeric_limits<double>::lowest())\n      value = -std::numeric_limits<double>::infinity();\n    else if (!std::isinf(value))\n      return addError(\n          \"'\" + String(token.start_, token.end_) + \"' is not a number.\", token);\n  }\n  decoded = value;\n  return true;\n}\n\nbool Reader::decodeString(Token& token) {\n  String decoded_string;\n  if (!decodeString(token, decoded_string))\n    return false;\n  Value decoded(decoded_string);\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool Reader::decodeString(Token& token, String& decoded) {\n  decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2));\n  Location current = token.start_ + 1; // skip '\"'\n  Location end = token.end_ - 1;       // do not include '\"'\n  while (current != end) {\n    Char c = *current++;\n    if (c == '\"')\n      break;\n    if (c == '\\\\') {\n      if (current == end)\n        return addError(\"Empty escape sequence in string\", token, current);\n      Char escape = *current++;\n      switch (escape) {\n      case '\"':\n        decoded += '\"';\n        break;\n      case '/':\n        decoded += '/';\n        break;\n      case '\\\\':\n        decoded += '\\\\';\n        break;\n      case 'b':\n        decoded += '\\b';\n        break;\n      case 'f':\n        decoded += '\\f';\n        break;\n      case 'n':\n        decoded += '\\n';\n        break;\n      case 'r':\n        decoded += '\\r';\n        break;\n      case 't':\n        decoded += '\\t';\n        break;\n      case 'u': {\n        unsigned int unicode;\n        if (!decodeUnicodeCodePoint(token, current, end, unicode))\n          return false;\n        decoded += codePointToUTF8(unicode);\n      } break;\n      default:\n        return addError(\"Bad escape sequence in string\", token, current);\n      }\n    } else {\n      if (static_cast<unsigned char>(c) < 0x20)\n        return addError(\"Control character in string\", token, current - 1);\n      decoded += c;\n    }\n  }\n  return true;\n}\n\nbool Reader::decodeUnicodeCodePoint(Token& token, Location& current,\n                                    Location end, unsigned int& unicode) {\n\n  if (!decodeUnicodeEscapeSequence(token, current, end, unicode))\n    return false;\n  if (unicode >= 0xD800 && unicode <= 0xDBFF) {\n    // surrogate pairs\n    if (end - current < 6)\n      return addError(\n          \"additional six characters expected to parse unicode surrogate pair.\",\n          token, current);\n    if (*(current++) == '\\\\' && *(current++) == 'u') {\n      unsigned int surrogatePair;\n      if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {\n        unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF);\n      } else\n        return false;\n    } else\n      return addError(\"expecting another \\\\u token to begin the second half of \"\n                      \"a unicode surrogate pair\",\n                      token, current);\n  }\n  return true;\n}\n\nbool Reader::decodeUnicodeEscapeSequence(Token& token, Location& current,\n                                         Location end,\n                                         unsigned int& ret_unicode) {\n  if (end - current < 4)\n    return addError(\n        \"Bad unicode escape sequence in string: four digits expected.\", token,\n        current);\n  int unicode = 0;\n  for (int index = 0; index < 4; ++index) {\n    Char c = *current++;\n    unicode *= 16;\n    if (c >= '0' && c <= '9')\n      unicode += c - '0';\n    else if (c >= 'a' && c <= 'f')\n      unicode += c - 'a' + 10;\n    else if (c >= 'A' && c <= 'F')\n      unicode += c - 'A' + 10;\n    else\n      return addError(\n          \"Bad unicode escape sequence in string: hexadecimal digit expected.\",\n          token, current);\n  }\n  ret_unicode = static_cast<unsigned int>(unicode);\n  return true;\n}\n\nbool Reader::addError(const String& message, Token& token, Location extra) {\n  ErrorInfo info;\n  info.token_ = token;\n  info.message_ = message;\n  info.extra_ = extra;\n  errors_.push_back(info);\n  return false;\n}\n\nbool Reader::recoverFromError(TokenType skipUntilToken) {\n  size_t const errorCount = errors_.size();\n  Token skip;\n  for (;;) {\n    if (!readToken(skip))\n      errors_.resize(errorCount); // discard errors caused by recovery\n    if (skip.type_ == skipUntilToken || skip.type_ == tokenEndOfStream)\n      break;\n  }\n  errors_.resize(errorCount);\n  return false;\n}\n\nbool Reader::addErrorAndRecover(const String& message, Token& token,\n                                TokenType skipUntilToken) {\n  addError(message, token);\n  return recoverFromError(skipUntilToken);\n}\n\nValue& Reader::currentValue() { return *(nodes_.top()); }\n\nReader::Char Reader::getNextChar() {\n  if (current_ == end_)\n    return 0;\n  return *current_++;\n}\n\nvoid Reader::getLocationLineAndColumn(Location location, int& line,\n                                      int& column) const {\n  Location current = begin_;\n  Location lastLineStart = current;\n  line = 0;\n  while (current < location && current != end_) {\n    Char c = *current++;\n    if (c == '\\r') {\n      if (current != end_ && *current == '\\n')\n        ++current;\n      lastLineStart = current;\n      ++line;\n    } else if (c == '\\n') {\n      lastLineStart = current;\n      ++line;\n    }\n  }\n  // column & line start at 1\n  column = int(location - lastLineStart) + 1;\n  ++line;\n}\n\nString Reader::getLocationLineAndColumn(Location location) const {\n  int line, column;\n  getLocationLineAndColumn(location, line, column);\n  char buffer[18 + 16 + 16 + 1];\n  jsoncpp_snprintf(buffer, sizeof(buffer), \"Line %d, Column %d\", line, column);\n  return buffer;\n}\n\n// Deprecated. Preserved for backward compatibility\nString Reader::getFormatedErrorMessages() const {\n  return getFormattedErrorMessages();\n}\n\nString Reader::getFormattedErrorMessages() const {\n  String formattedMessage;\n  for (const auto& error : errors_) {\n    formattedMessage +=\n        \"* \" + getLocationLineAndColumn(error.token_.start_) + \"\\n\";\n    formattedMessage += \"  \" + error.message_ + \"\\n\";\n    if (error.extra_)\n      formattedMessage +=\n          \"See \" + getLocationLineAndColumn(error.extra_) + \" for detail.\\n\";\n  }\n  return formattedMessage;\n}\n\nstd::vector<Reader::StructuredError> Reader::getStructuredErrors() const {\n  std::vector<Reader::StructuredError> allErrors;\n  for (const auto& error : errors_) {\n    Reader::StructuredError structured;\n    structured.offset_start = error.token_.start_ - begin_;\n    structured.offset_limit = error.token_.end_ - begin_;\n    structured.message = error.message_;\n    allErrors.push_back(structured);\n  }\n  return allErrors;\n}\n\nbool Reader::pushError(const Value& value, const String& message) {\n  ptrdiff_t const length = end_ - begin_;\n  if (value.getOffsetStart() > length || value.getOffsetLimit() > length)\n    return false;\n  Token token;\n  token.type_ = tokenError;\n  token.start_ = begin_ + value.getOffsetStart();\n  token.end_ = begin_ + value.getOffsetLimit();\n  ErrorInfo info;\n  info.token_ = token;\n  info.message_ = message;\n  info.extra_ = nullptr;\n  errors_.push_back(info);\n  return true;\n}\n\nbool Reader::pushError(const Value& value, const String& message,\n                       const Value& extra) {\n  ptrdiff_t const length = end_ - begin_;\n  if (value.getOffsetStart() > length || value.getOffsetLimit() > length ||\n      extra.getOffsetLimit() > length)\n    return false;\n  Token token;\n  token.type_ = tokenError;\n  token.start_ = begin_ + value.getOffsetStart();\n  token.end_ = begin_ + value.getOffsetLimit();\n  ErrorInfo info;\n  info.token_ = token;\n  info.message_ = message;\n  info.extra_ = begin_ + extra.getOffsetStart();\n  errors_.push_back(info);\n  return true;\n}\n\nbool Reader::good() const { return errors_.empty(); }\n\n// Originally copied from the Features class (now deprecated), used internally\n// for features implementation.\nclass OurFeatures {\npublic:\n  static OurFeatures all();\n  bool allowComments_;\n  bool allowTrailingCommas_;\n  bool strictRoot_;\n  bool allowDroppedNullPlaceholders_;\n  bool allowNumericKeys_;\n  bool allowSingleQuotes_;\n  bool failIfExtra_;\n  bool rejectDupKeys_;\n  bool allowSpecialFloats_;\n  bool skipBom_;\n  size_t stackLimit_;\n}; // OurFeatures\n\nOurFeatures OurFeatures::all() { return {}; }\n\n// Implementation of class Reader\n// ////////////////////////////////\n\n// Originally copied from the Reader class (now deprecated), used internally\n// for implementing JSON reading.\nclass OurReader {\npublic:\n  using Char = char;\n  using Location = const Char*;\n\n  explicit OurReader(OurFeatures const& features);\n  bool parse(const char* beginDoc, const char* endDoc, Value& root,\n             bool collectComments = true);\n  String getFormattedErrorMessages() const;\n  std::vector<CharReader::StructuredError> getStructuredErrors() const;\n\nprivate:\n  OurReader(OurReader const&);      // no impl\n  void operator=(OurReader const&); // no impl\n\n  enum TokenType {\n    tokenEndOfStream = 0,\n    tokenObjectBegin,\n    tokenObjectEnd,\n    tokenArrayBegin,\n    tokenArrayEnd,\n    tokenString,\n    tokenNumber,\n    tokenTrue,\n    tokenFalse,\n    tokenNull,\n    tokenNaN,\n    tokenPosInf,\n    tokenNegInf,\n    tokenArraySeparator,\n    tokenMemberSeparator,\n    tokenComment,\n    tokenError\n  };\n\n  class Token {\n  public:\n    TokenType type_;\n    Location start_;\n    Location end_;\n  };\n\n  class ErrorInfo {\n  public:\n    Token token_;\n    String message_;\n    Location extra_;\n  };\n\n  using Errors = std::deque<ErrorInfo>;\n\n  bool readToken(Token& token);\n  bool readTokenSkippingComments(Token& token);\n  void skipSpaces();\n  void skipBom(bool skipBom);\n  bool match(const Char* pattern, int patternLength);\n  bool readComment();\n  bool readCStyleComment(bool* containsNewLineResult);\n  bool readCppStyleComment();\n  bool readString();\n  bool readStringSingleQuote();\n  bool readNumber(bool checkInf);\n  bool readValue();\n  bool readObject(Token& token);\n  bool readArray(Token& token);\n  bool decodeNumber(Token& token);\n  bool decodeNumber(Token& token, Value& decoded);\n  bool decodeString(Token& token);\n  bool decodeString(Token& token, String& decoded);\n  bool decodeDouble(Token& token);\n  bool decodeDouble(Token& token, Value& decoded);\n  bool decodeUnicodeCodePoint(Token& token, Location& current, Location end,\n                              unsigned int& unicode);\n  bool decodeUnicodeEscapeSequence(Token& token, Location& current,\n                                   Location end, unsigned int& unicode);\n  bool addError(const String& message, Token& token, Location extra = nullptr);\n  bool recoverFromError(TokenType skipUntilToken);\n  bool addErrorAndRecover(const String& message, Token& token,\n                          TokenType skipUntilToken);\n  void skipUntilSpace();\n  Value& currentValue();\n  Char getNextChar();\n  void getLocationLineAndColumn(Location location, int& line,\n                                int& column) const;\n  String getLocationLineAndColumn(Location location) const;\n  void addComment(Location begin, Location end, CommentPlacement placement);\n\n  static String normalizeEOL(Location begin, Location end);\n  static bool containsNewLine(Location begin, Location end);\n\n  using Nodes = std::stack<Value*>;\n\n  Nodes nodes_{};\n  Errors errors_{};\n  String document_{};\n  Location begin_ = nullptr;\n  Location end_ = nullptr;\n  Location current_ = nullptr;\n  Location lastValueEnd_ = nullptr;\n  Value* lastValue_ = nullptr;\n  bool lastValueHasAComment_ = false;\n  String commentsBefore_{};\n\n  OurFeatures const features_;\n  bool collectComments_ = false;\n}; // OurReader\n\n// complete copy of Read impl, for OurReader\n\nbool OurReader::containsNewLine(OurReader::Location begin,\n                                OurReader::Location end) {\n  return std::any_of(begin, end, [](char b) { return b == '\\n' || b == '\\r'; });\n}\n\nOurReader::OurReader(OurFeatures const& features) : features_(features) {}\n\nbool OurReader::parse(const char* beginDoc, const char* endDoc, Value& root,\n                      bool collectComments) {\n  if (!features_.allowComments_) {\n    collectComments = false;\n  }\n\n  begin_ = beginDoc;\n  end_ = endDoc;\n  collectComments_ = collectComments;\n  current_ = begin_;\n  lastValueEnd_ = nullptr;\n  lastValue_ = nullptr;\n  commentsBefore_.clear();\n  errors_.clear();\n  while (!nodes_.empty())\n    nodes_.pop();\n  nodes_.push(&root);\n\n  // skip byte order mark if it exists at the beginning of the UTF-8 text.\n  skipBom(features_.skipBom_);\n  bool successful = readValue();\n  nodes_.pop();\n  Token token;\n  readTokenSkippingComments(token);\n  if (features_.failIfExtra_ && (token.type_ != tokenEndOfStream)) {\n    addError(\"Extra non-whitespace after JSON value.\", token);\n    return false;\n  }\n  if (collectComments_ && !commentsBefore_.empty())\n    root.setComment(commentsBefore_, commentAfter);\n  if (features_.strictRoot_) {\n    if (!root.isArray() && !root.isObject()) {\n      // Set error location to start of doc, ideally should be first token found\n      // in doc\n      token.type_ = tokenError;\n      token.start_ = beginDoc;\n      token.end_ = endDoc;\n      addError(\n          \"A valid JSON document must be either an array or an object value.\",\n          token);\n      return false;\n    }\n  }\n  return successful;\n}\n\nbool OurReader::readValue() {\n  //  To preserve the old behaviour we cast size_t to int.\n  if (nodes_.size() > features_.stackLimit_)\n    throwRuntimeError(\"Exceeded stackLimit in readValue().\");\n  Token token;\n  readTokenSkippingComments(token);\n  bool successful = true;\n\n  if (collectComments_ && !commentsBefore_.empty()) {\n    currentValue().setComment(commentsBefore_, commentBefore);\n    commentsBefore_.clear();\n  }\n\n  switch (token.type_) {\n  case tokenObjectBegin:\n    successful = readObject(token);\n    currentValue().setOffsetLimit(current_ - begin_);\n    break;\n  case tokenArrayBegin:\n    successful = readArray(token);\n    currentValue().setOffsetLimit(current_ - begin_);\n    break;\n  case tokenNumber:\n    successful = decodeNumber(token);\n    break;\n  case tokenString:\n    successful = decodeString(token);\n    break;\n  case tokenTrue: {\n    Value v(true);\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenFalse: {\n    Value v(false);\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenNull: {\n    Value v;\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenNaN: {\n    Value v(std::numeric_limits<double>::quiet_NaN());\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenPosInf: {\n    Value v(std::numeric_limits<double>::infinity());\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenNegInf: {\n    Value v(-std::numeric_limits<double>::infinity());\n    currentValue().swapPayload(v);\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n  } break;\n  case tokenArraySeparator:\n  case tokenObjectEnd:\n  case tokenArrayEnd:\n    if (features_.allowDroppedNullPlaceholders_) {\n      // \"Un-read\" the current token and mark the current value as a null\n      // token.\n      current_--;\n      Value v;\n      currentValue().swapPayload(v);\n      currentValue().setOffsetStart(current_ - begin_ - 1);\n      currentValue().setOffsetLimit(current_ - begin_);\n      break;\n    } // else, fall through ...\n  default:\n    currentValue().setOffsetStart(token.start_ - begin_);\n    currentValue().setOffsetLimit(token.end_ - begin_);\n    return addError(\"Syntax error: value, object or array expected.\", token);\n  }\n\n  if (collectComments_) {\n    lastValueEnd_ = current_;\n    lastValueHasAComment_ = false;\n    lastValue_ = &currentValue();\n  }\n\n  return successful;\n}\n\nbool OurReader::readTokenSkippingComments(Token& token) {\n  bool success = readToken(token);\n  if (features_.allowComments_) {\n    while (success && token.type_ == tokenComment) {\n      success = readToken(token);\n    }\n  }\n  return success;\n}\n\nbool OurReader::readToken(Token& token) {\n  skipSpaces();\n  token.start_ = current_;\n  Char c = getNextChar();\n  bool ok = true;\n  switch (c) {\n  case '{':\n    token.type_ = tokenObjectBegin;\n    break;\n  case '}':\n    token.type_ = tokenObjectEnd;\n    break;\n  case '[':\n    token.type_ = tokenArrayBegin;\n    break;\n  case ']':\n    token.type_ = tokenArrayEnd;\n    break;\n  case '\"':\n    token.type_ = tokenString;\n    ok = readString();\n    break;\n  case '\\'':\n    if (features_.allowSingleQuotes_) {\n      token.type_ = tokenString;\n      ok = readStringSingleQuote();\n    } else {\n      // If we don't allow single quotes, this is a failure case.\n      ok = false;\n    }\n    break;\n  case '/':\n    token.type_ = tokenComment;\n    ok = readComment();\n    break;\n  case '0':\n  case '1':\n  case '2':\n  case '3':\n  case '4':\n  case '5':\n  case '6':\n  case '7':\n  case '8':\n  case '9':\n    token.type_ = tokenNumber;\n    readNumber(false);\n    break;\n  case '-':\n    if (readNumber(true)) {\n      token.type_ = tokenNumber;\n    } else {\n      token.type_ = tokenNegInf;\n      ok = features_.allowSpecialFloats_ && match(\"nfinity\", 7);\n    }\n    break;\n  case '+':\n    if (readNumber(true)) {\n      token.type_ = tokenNumber;\n    } else {\n      token.type_ = tokenPosInf;\n      ok = features_.allowSpecialFloats_ && match(\"nfinity\", 7);\n    }\n    break;\n  case 't':\n    token.type_ = tokenTrue;\n    ok = match(\"rue\", 3);\n    break;\n  case 'f':\n    token.type_ = tokenFalse;\n    ok = match(\"alse\", 4);\n    break;\n  case 'n':\n    token.type_ = tokenNull;\n    ok = match(\"ull\", 3);\n    break;\n  case 'N':\n    if (features_.allowSpecialFloats_) {\n      token.type_ = tokenNaN;\n      ok = match(\"aN\", 2);\n    } else {\n      ok = false;\n    }\n    break;\n  case 'I':\n    if (features_.allowSpecialFloats_) {\n      token.type_ = tokenPosInf;\n      ok = match(\"nfinity\", 7);\n    } else {\n      ok = false;\n    }\n    break;\n  case ',':\n    token.type_ = tokenArraySeparator;\n    break;\n  case ':':\n    token.type_ = tokenMemberSeparator;\n    break;\n  case 0:\n    token.type_ = tokenEndOfStream;\n    break;\n  default:\n    ok = false;\n    break;\n  }\n  if (!ok)\n    token.type_ = tokenError;\n  token.end_ = current_;\n  return ok;\n}\n\nvoid OurReader::skipSpaces() {\n  while (current_ != end_) {\n    Char c = *current_;\n    if (c == ' ' || c == '\\t' || c == '\\r' || c == '\\n')\n      ++current_;\n    else\n      break;\n  }\n}\n\nvoid OurReader::skipBom(bool skipBom) {\n  // The default behavior is to skip BOM.\n  if (skipBom) {\n    if ((end_ - begin_) >= 3 && strncmp(begin_, \"\\xEF\\xBB\\xBF\", 3) == 0) {\n      begin_ += 3;\n      current_ = begin_;\n    }\n  }\n}\n\nbool OurReader::match(const Char* pattern, int patternLength) {\n  if (end_ - current_ < patternLength)\n    return false;\n  int index = patternLength;\n  while (index--)\n    if (current_[index] != pattern[index])\n      return false;\n  current_ += patternLength;\n  return true;\n}\n\nbool OurReader::readComment() {\n  const Location commentBegin = current_ - 1;\n  const Char c = getNextChar();\n  bool successful = false;\n  bool cStyleWithEmbeddedNewline = false;\n\n  const bool isCStyleComment = (c == '*');\n  const bool isCppStyleComment = (c == '/');\n  if (isCStyleComment) {\n    successful = readCStyleComment(&cStyleWithEmbeddedNewline);\n  } else if (isCppStyleComment) {\n    successful = readCppStyleComment();\n  }\n\n  if (!successful)\n    return false;\n\n  if (collectComments_) {\n    CommentPlacement placement = commentBefore;\n\n    if (!lastValueHasAComment_) {\n      if (lastValueEnd_ && !containsNewLine(lastValueEnd_, commentBegin)) {\n        if (isCppStyleComment || !cStyleWithEmbeddedNewline) {\n          placement = commentAfterOnSameLine;\n          lastValueHasAComment_ = true;\n        }\n      }\n    }\n\n    addComment(commentBegin, current_, placement);\n  }\n  return true;\n}\n\nString OurReader::normalizeEOL(OurReader::Location begin,\n                               OurReader::Location end) {\n  String normalized;\n  normalized.reserve(static_cast<size_t>(end - begin));\n  OurReader::Location current = begin;\n  while (current != end) {\n    char c = *current++;\n    if (c == '\\r') {\n      if (current != end && *current == '\\n')\n        // convert dos EOL\n        ++current;\n      // convert Mac EOL\n      normalized += '\\n';\n    } else {\n      normalized += c;\n    }\n  }\n  return normalized;\n}\n\nvoid OurReader::addComment(Location begin, Location end,\n                           CommentPlacement placement) {\n  assert(collectComments_);\n  const String& normalized = normalizeEOL(begin, end);\n  if (placement == commentAfterOnSameLine) {\n    assert(lastValue_ != nullptr);\n    lastValue_->setComment(normalized, placement);\n  } else {\n    commentsBefore_ += normalized;\n  }\n}\n\nbool OurReader::readCStyleComment(bool* containsNewLineResult) {\n  *containsNewLineResult = false;\n\n  while ((current_ + 1) < end_) {\n    Char c = getNextChar();\n    if (c == '*' && *current_ == '/')\n      break;\n    if (c == '\\n')\n      *containsNewLineResult = true;\n  }\n\n  return getNextChar() == '/';\n}\n\nbool OurReader::readCppStyleComment() {\n  while (current_ != end_) {\n    Char c = getNextChar();\n    if (c == '\\n')\n      break;\n    if (c == '\\r') {\n      // Consume DOS EOL. It will be normalized in addComment.\n      if (current_ != end_ && *current_ == '\\n')\n        getNextChar();\n      // Break on Moc OS 9 EOL.\n      break;\n    }\n  }\n  return true;\n}\n\nbool OurReader::readNumber(bool checkInf) {\n  Location p = current_;\n  if (checkInf && p != end_ && *p == 'I') {\n    current_ = ++p;\n    return false;\n  }\n  char c = '0'; // stopgap for already consumed character\n  // integral part\n  while (c >= '0' && c <= '9')\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n  // fractional part\n  if (c == '.') {\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n    while (c >= '0' && c <= '9')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n  }\n  // exponential part\n  if (c == 'e' || c == 'E') {\n    c = (current_ = p) < end_ ? *p++ : '\\0';\n    if (c == '+' || c == '-')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n    while (c >= '0' && c <= '9')\n      c = (current_ = p) < end_ ? *p++ : '\\0';\n  }\n  return true;\n}\nbool OurReader::readString() {\n  Char c = 0;\n  while (current_ != end_) {\n    c = getNextChar();\n    if (c == '\\\\')\n      getNextChar();\n    else if (c == '\"')\n      break;\n  }\n  return c == '\"';\n}\n\nbool OurReader::readStringSingleQuote() {\n  Char c = 0;\n  while (current_ != end_) {\n    c = getNextChar();\n    if (c == '\\\\')\n      getNextChar();\n    else if (c == '\\'')\n      break;\n  }\n  return c == '\\'';\n}\n\nbool OurReader::readObject(Token& token) {\n  Token tokenName;\n  String name;\n  Value init(objectValue);\n  currentValue().swapPayload(init);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  while (readTokenSkippingComments(tokenName)) {\n    if (tokenName.type_ == tokenObjectEnd &&\n        (name.empty() ||\n         features_.allowTrailingCommas_)) // empty object or trailing comma\n      return true;\n    name.clear();\n    if (tokenName.type_ == tokenString) {\n      if (!decodeString(tokenName, name))\n        return recoverFromError(tokenObjectEnd);\n    } else if (tokenName.type_ == tokenNumber && features_.allowNumericKeys_) {\n      Value numberName;\n      if (!decodeNumber(tokenName, numberName))\n        return recoverFromError(tokenObjectEnd);\n      name = numberName.asString();\n    } else {\n      break;\n    }\n    if (name.length() >= (1U << 30))\n      throwRuntimeError(\"keylength >= 2^30\");\n    if (features_.rejectDupKeys_ && currentValue().isMember(name)) {\n      String msg = \"Duplicate key: '\" + name + \"'\";\n      return addErrorAndRecover(msg, tokenName, tokenObjectEnd);\n    }\n\n    Token colon;\n    if (!readToken(colon) || colon.type_ != tokenMemberSeparator) {\n      return addErrorAndRecover(\"Missing ':' after object member name\", colon,\n                                tokenObjectEnd);\n    }\n    Value& value = currentValue()[name];\n    nodes_.push(&value);\n    bool ok = readValue();\n    nodes_.pop();\n    if (!ok) // error already set\n      return recoverFromError(tokenObjectEnd);\n\n    Token comma;\n    if (!readTokenSkippingComments(comma) ||\n        (comma.type_ != tokenObjectEnd && comma.type_ != tokenArraySeparator)) {\n      return addErrorAndRecover(\"Missing ',' or '}' in object declaration\",\n                                comma, tokenObjectEnd);\n    }\n    if (comma.type_ == tokenObjectEnd)\n      return true;\n  }\n  return addErrorAndRecover(\"Missing '}' or object member name\", tokenName,\n                            tokenObjectEnd);\n}\n\nbool OurReader::readArray(Token& token) {\n  Value init(arrayValue);\n  currentValue().swapPayload(init);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  int index = 0;\n  for (;;) {\n    skipSpaces();\n    if (current_ != end_ && *current_ == ']' &&\n        (index == 0 ||\n         (features_.allowTrailingCommas_ &&\n          !features_.allowDroppedNullPlaceholders_))) // empty array or trailing\n                                                      // comma\n    {\n      Token endArray;\n      readToken(endArray);\n      return true;\n    }\n    Value& value = currentValue()[index++];\n    nodes_.push(&value);\n    bool ok = readValue();\n    nodes_.pop();\n    if (!ok) // error already set\n      return recoverFromError(tokenArrayEnd);\n\n    Token currentToken;\n    // Accept Comment after last item in the array.\n    ok = readTokenSkippingComments(currentToken);\n    bool badTokenType = (currentToken.type_ != tokenArraySeparator &&\n                         currentToken.type_ != tokenArrayEnd);\n    if (!ok || badTokenType) {\n      return addErrorAndRecover(\"Missing ',' or ']' in array declaration\",\n                                currentToken, tokenArrayEnd);\n    }\n    if (currentToken.type_ == tokenArrayEnd)\n      break;\n  }\n  return true;\n}\n\nbool OurReader::decodeNumber(Token& token) {\n  Value decoded;\n  if (!decodeNumber(token, decoded))\n    return false;\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool OurReader::decodeNumber(Token& token, Value& decoded) {\n  // Attempts to parse the number as an integer. If the number is\n  // larger than the maximum supported value of an integer then\n  // we decode the number as a double.\n  Location current = token.start_;\n  const bool isNegative = *current == '-';\n  if (isNegative) {\n    ++current;\n  }\n\n  // We assume we can represent the largest and smallest integer types as\n  // unsigned integers with separate sign. This is only true if they can fit\n  // into an unsigned integer.\n  static_assert(Value::maxLargestInt <= Value::maxLargestUInt,\n                \"Int must be smaller than UInt\");\n\n  // We need to convert minLargestInt into a positive number. The easiest way\n  // to do this conversion is to assume our \"threshold\" value of minLargestInt\n  // divided by 10 can fit in maxLargestInt when absolute valued. This should\n  // be a safe assumption.\n  static_assert(Value::minLargestInt <= -Value::maxLargestInt,\n                \"The absolute value of minLargestInt must be greater than or \"\n                \"equal to maxLargestInt\");\n  static_assert(Value::minLargestInt / 10 >= -Value::maxLargestInt,\n                \"The absolute value of minLargestInt must be only 1 magnitude \"\n                \"larger than maxLargest Int\");\n\n  static constexpr Value::LargestUInt positive_threshold =\n      Value::maxLargestUInt / 10;\n  static constexpr Value::UInt positive_last_digit = Value::maxLargestUInt % 10;\n\n  // For the negative values, we have to be more careful. Since typically\n  // -Value::minLargestInt will cause an overflow, we first divide by 10 and\n  // then take the inverse. This assumes that minLargestInt is only a single\n  // power of 10 different in magnitude, which we check above. For the last\n  // digit, we take the modulus before negating for the same reason.\n  static constexpr auto negative_threshold =\n      Value::LargestUInt(-(Value::minLargestInt / 10));\n  static constexpr auto negative_last_digit =\n      Value::UInt(-(Value::minLargestInt % 10));\n\n  const Value::LargestUInt threshold =\n      isNegative ? negative_threshold : positive_threshold;\n  const Value::UInt max_last_digit =\n      isNegative ? negative_last_digit : positive_last_digit;\n\n  Value::LargestUInt value = 0;\n  while (current < token.end_) {\n    Char c = *current++;\n    if (c < '0' || c > '9')\n      return decodeDouble(token, decoded);\n\n    const auto digit(static_cast<Value::UInt>(c - '0'));\n    if (value >= threshold) {\n      // We've hit or exceeded the max value divided by 10 (rounded down). If\n      // a) we've only just touched the limit, meaning value == threshold,\n      // b) this is the last digit, or\n      // c) it's small enough to fit in that rounding delta, we're okay.\n      // Otherwise treat this number as a double to avoid overflow.\n      if (value > threshold || current != token.end_ ||\n          digit > max_last_digit) {\n        return decodeDouble(token, decoded);\n      }\n    }\n    value = value * 10 + digit;\n  }\n\n  if (isNegative) {\n    // We use the same magnitude assumption here, just in case.\n    const auto last_digit = static_cast<Value::UInt>(value % 10);\n    decoded = -Value::LargestInt(value / 10) * 10 - last_digit;\n  } else if (value <= Value::LargestUInt(Value::maxLargestInt)) {\n    decoded = Value::LargestInt(value);\n  } else {\n    decoded = value;\n  }\n\n  return true;\n}\n\nbool OurReader::decodeDouble(Token& token) {\n  Value decoded;\n  if (!decodeDouble(token, decoded))\n    return false;\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool OurReader::decodeDouble(Token& token, Value& decoded) {\n  double value = 0;\n  IStringStream is(String(token.start_, token.end_));\n  is.imbue(std::locale::classic());\n  if (!(is >> value)) {\n    if (value == std::numeric_limits<double>::max())\n      value = std::numeric_limits<double>::infinity();\n    else if (value == std::numeric_limits<double>::lowest())\n      value = -std::numeric_limits<double>::infinity();\n    else if (!std::isinf(value))\n      return addError(\n          \"'\" + String(token.start_, token.end_) + \"' is not a number.\", token);\n  }\n  decoded = value;\n  return true;\n}\n\nbool OurReader::decodeString(Token& token) {\n  String decoded_string;\n  if (!decodeString(token, decoded_string))\n    return false;\n  Value decoded(decoded_string);\n  currentValue().swapPayload(decoded);\n  currentValue().setOffsetStart(token.start_ - begin_);\n  currentValue().setOffsetLimit(token.end_ - begin_);\n  return true;\n}\n\nbool OurReader::decodeString(Token& token, String& decoded) {\n  decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2));\n  Location current = token.start_ + 1; // skip '\"'\n  Location end = token.end_ - 1;       // do not include '\"'\n  while (current != end) {\n    Char c = *current++;\n    if (c == '\"')\n      break;\n    if (c == '\\\\') {\n      if (current == end)\n        return addError(\"Empty escape sequence in string\", token, current);\n      Char escape = *current++;\n      switch (escape) {\n      case '\"':\n        decoded += '\"';\n        break;\n      case '/':\n        decoded += '/';\n        break;\n      case '\\\\':\n        decoded += '\\\\';\n        break;\n      case 'b':\n        decoded += '\\b';\n        break;\n      case 'f':\n        decoded += '\\f';\n        break;\n      case 'n':\n        decoded += '\\n';\n        break;\n      case 'r':\n        decoded += '\\r';\n        break;\n      case 't':\n        decoded += '\\t';\n        break;\n      case 'u': {\n        unsigned int unicode;\n        if (!decodeUnicodeCodePoint(token, current, end, unicode))\n          return false;\n        decoded += codePointToUTF8(unicode);\n      } break;\n      default:\n        return addError(\"Bad escape sequence in string\", token, current);\n      }\n    } else {\n      if (static_cast<unsigned char>(c) < 0x20)\n        return addError(\"Control character in string\", token, current - 1);\n      decoded += c;\n    }\n  }\n  return true;\n}\n\nbool OurReader::decodeUnicodeCodePoint(Token& token, Location& current,\n                                       Location end, unsigned int& unicode) {\n\n  if (!decodeUnicodeEscapeSequence(token, current, end, unicode))\n    return false;\n  if (unicode >= 0xD800 && unicode <= 0xDBFF) {\n    // surrogate pairs\n    if (end - current < 6)\n      return addError(\n          \"additional six characters expected to parse unicode surrogate pair.\",\n          token, current);\n    if (*(current++) == '\\\\' && *(current++) == 'u') {\n      unsigned int surrogatePair;\n      if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {\n        unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF);\n      } else\n        return false;\n    } else\n      return addError(\"expecting another \\\\u token to begin the second half of \"\n                      \"a unicode surrogate pair\",\n                      token, current);\n  }\n  return true;\n}\n\nbool OurReader::decodeUnicodeEscapeSequence(Token& token, Location& current,\n                                            Location end,\n                                            unsigned int& ret_unicode) {\n  if (end - current < 4)\n    return addError(\n        \"Bad unicode escape sequence in string: four digits expected.\", token,\n        current);\n  int unicode = 0;\n  for (int index = 0; index < 4; ++index) {\n    Char c = *current++;\n    unicode *= 16;\n    if (c >= '0' && c <= '9')\n      unicode += c - '0';\n    else if (c >= 'a' && c <= 'f')\n      unicode += c - 'a' + 10;\n    else if (c >= 'A' && c <= 'F')\n      unicode += c - 'A' + 10;\n    else\n      return addError(\n          \"Bad unicode escape sequence in string: hexadecimal digit expected.\",\n          token, current);\n  }\n  ret_unicode = static_cast<unsigned int>(unicode);\n  return true;\n}\n\nbool OurReader::addError(const String& message, Token& token, Location extra) {\n  ErrorInfo info;\n  info.token_ = token;\n  info.message_ = message;\n  info.extra_ = extra;\n  errors_.push_back(info);\n  return false;\n}\n\nbool OurReader::recoverFromError(TokenType skipUntilToken) {\n  size_t errorCount = errors_.size();\n  Token skip;\n  for (;;) {\n    if (!readToken(skip))\n      errors_.resize(errorCount); // discard errors caused by recovery\n    if (skip.type_ == skipUntilToken || skip.type_ == tokenEndOfStream)\n      break;\n  }\n  errors_.resize(errorCount);\n  return false;\n}\n\nbool OurReader::addErrorAndRecover(const String& message, Token& token,\n                                   TokenType skipUntilToken) {\n  addError(message, token);\n  return recoverFromError(skipUntilToken);\n}\n\nValue& OurReader::currentValue() { return *(nodes_.top()); }\n\nOurReader::Char OurReader::getNextChar() {\n  if (current_ == end_)\n    return 0;\n  return *current_++;\n}\n\nvoid OurReader::getLocationLineAndColumn(Location location, int& line,\n                                         int& column) const {\n  Location current = begin_;\n  Location lastLineStart = current;\n  line = 0;\n  while (current < location && current != end_) {\n    Char c = *current++;\n    if (c == '\\r') {\n      if (current != end_ && *current == '\\n')\n        ++current;\n      lastLineStart = current;\n      ++line;\n    } else if (c == '\\n') {\n      lastLineStart = current;\n      ++line;\n    }\n  }\n  // column & line start at 1\n  column = int(location - lastLineStart) + 1;\n  ++line;\n}\n\nString OurReader::getLocationLineAndColumn(Location location) const {\n  int line, column;\n  getLocationLineAndColumn(location, line, column);\n  char buffer[18 + 16 + 16 + 1];\n  jsoncpp_snprintf(buffer, sizeof(buffer), \"Line %d, Column %d\", line, column);\n  return buffer;\n}\n\nString OurReader::getFormattedErrorMessages() const {\n  String formattedMessage;\n  for (const auto& error : errors_) {\n    formattedMessage +=\n        \"* \" + getLocationLineAndColumn(error.token_.start_) + \"\\n\";\n    formattedMessage += \"  \" + error.message_ + \"\\n\";\n    if (error.extra_)\n      formattedMessage +=\n          \"See \" + getLocationLineAndColumn(error.extra_) + \" for detail.\\n\";\n  }\n  return formattedMessage;\n}\n\nstd::vector<CharReader::StructuredError>\nOurReader::getStructuredErrors() const {\n  std::vector<CharReader::StructuredError> allErrors;\n  for (const auto& error : errors_) {\n    CharReader::StructuredError structured;\n    structured.offset_start = error.token_.start_ - begin_;\n    structured.offset_limit = error.token_.end_ - begin_;\n    structured.message = error.message_;\n    allErrors.push_back(structured);\n  }\n  return allErrors;\n}\n\nclass OurCharReader : public CharReader {\n\npublic:\n  OurCharReader(bool collectComments, OurFeatures const& features)\n      : CharReader(\n            std::unique_ptr<OurImpl>(new OurImpl(collectComments, features))) {}\n\nprotected:\n  class OurImpl : public Impl {\n  public:\n    OurImpl(bool collectComments, OurFeatures const& features)\n        : collectComments_(collectComments), reader_(features) {}\n\n    bool parse(char const* beginDoc, char const* endDoc, Value* root,\n               String* errs) override {\n      bool ok = reader_.parse(beginDoc, endDoc, *root, collectComments_);\n      if (errs) {\n        *errs = reader_.getFormattedErrorMessages();\n      }\n      return ok;\n    }\n\n    std::vector<CharReader::StructuredError>\n    getStructuredErrors() const override {\n      return reader_.getStructuredErrors();\n    }\n\n  private:\n    bool const collectComments_;\n    OurReader reader_;\n  };\n};\n\nCharReaderBuilder::CharReaderBuilder() { setDefaults(&settings_); }\nCharReaderBuilder::~CharReaderBuilder() = default;\nCharReader* CharReaderBuilder::newCharReader() const {\n  bool collectComments = settings_[\"collectComments\"].asBool();\n  OurFeatures features = OurFeatures::all();\n  features.allowComments_ = settings_[\"allowComments\"].asBool();\n  features.allowTrailingCommas_ = settings_[\"allowTrailingCommas\"].asBool();\n  features.strictRoot_ = settings_[\"strictRoot\"].asBool();\n  features.allowDroppedNullPlaceholders_ =\n      settings_[\"allowDroppedNullPlaceholders\"].asBool();\n  features.allowNumericKeys_ = settings_[\"allowNumericKeys\"].asBool();\n  features.allowSingleQuotes_ = settings_[\"allowSingleQuotes\"].asBool();\n\n  // Stack limit is always a size_t, so we get this as an unsigned int\n  // regardless of it we have 64-bit integer support enabled.\n  features.stackLimit_ = static_cast<size_t>(settings_[\"stackLimit\"].asUInt());\n  features.failIfExtra_ = settings_[\"failIfExtra\"].asBool();\n  features.rejectDupKeys_ = settings_[\"rejectDupKeys\"].asBool();\n  features.allowSpecialFloats_ = settings_[\"allowSpecialFloats\"].asBool();\n  features.skipBom_ = settings_[\"skipBom\"].asBool();\n  return new OurCharReader(collectComments, features);\n}\n\nbool CharReaderBuilder::validate(Json::Value* invalid) const {\n  static const auto& valid_keys = *new std::set<String>{\n      \"collectComments\",\n      \"allowComments\",\n      \"allowTrailingCommas\",\n      \"strictRoot\",\n      \"allowDroppedNullPlaceholders\",\n      \"allowNumericKeys\",\n      \"allowSingleQuotes\",\n      \"stackLimit\",\n      \"failIfExtra\",\n      \"rejectDupKeys\",\n      \"allowSpecialFloats\",\n      \"skipBom\",\n  };\n  for (auto si = settings_.begin(); si != settings_.end(); ++si) {\n    auto key = si.name();\n    if (valid_keys.count(key))\n      continue;\n    if (invalid)\n      (*invalid)[key] = *si;\n    else\n      return false;\n  }\n  return invalid ? invalid->empty() : true;\n}\n\nValue& CharReaderBuilder::operator[](const String& key) {\n  return settings_[key];\n}\n// static\nvoid CharReaderBuilder::strictMode(Json::Value* settings) {\n  //! [CharReaderBuilderStrictMode]\n  (*settings)[\"allowComments\"] = false;\n  (*settings)[\"allowTrailingCommas\"] = false;\n  (*settings)[\"strictRoot\"] = true;\n  (*settings)[\"allowDroppedNullPlaceholders\"] = false;\n  (*settings)[\"allowNumericKeys\"] = false;\n  (*settings)[\"allowSingleQuotes\"] = false;\n  (*settings)[\"stackLimit\"] = 256;\n  (*settings)[\"failIfExtra\"] = true;\n  (*settings)[\"rejectDupKeys\"] = true;\n  (*settings)[\"allowSpecialFloats\"] = false;\n  (*settings)[\"skipBom\"] = true;\n  //! [CharReaderBuilderStrictMode]\n}\n// static\nvoid CharReaderBuilder::setDefaults(Json::Value* settings) {\n  //! [CharReaderBuilderDefaults]\n  (*settings)[\"collectComments\"] = true;\n  (*settings)[\"allowComments\"] = true;\n  (*settings)[\"allowTrailingCommas\"] = true;\n  (*settings)[\"strictRoot\"] = false;\n  (*settings)[\"allowDroppedNullPlaceholders\"] = false;\n  (*settings)[\"allowNumericKeys\"] = false;\n  (*settings)[\"allowSingleQuotes\"] = false;\n  (*settings)[\"stackLimit\"] = 256;\n  (*settings)[\"failIfExtra\"] = false;\n  (*settings)[\"rejectDupKeys\"] = false;\n  (*settings)[\"allowSpecialFloats\"] = false;\n  (*settings)[\"skipBom\"] = true;\n  //! [CharReaderBuilderDefaults]\n}\n// static\nvoid CharReaderBuilder::ecma404Mode(Json::Value* settings) {\n  //! [CharReaderBuilderECMA404Mode]\n  (*settings)[\"allowComments\"] = false;\n  (*settings)[\"allowTrailingCommas\"] = false;\n  (*settings)[\"strictRoot\"] = false;\n  (*settings)[\"allowDroppedNullPlaceholders\"] = false;\n  (*settings)[\"allowNumericKeys\"] = false;\n  (*settings)[\"allowSingleQuotes\"] = false;\n  (*settings)[\"stackLimit\"] = 256;\n  (*settings)[\"failIfExtra\"] = true;\n  (*settings)[\"rejectDupKeys\"] = false;\n  (*settings)[\"allowSpecialFloats\"] = false;\n  (*settings)[\"skipBom\"] = false;\n  //! [CharReaderBuilderECMA404Mode]\n}\n\nstd::vector<CharReader::StructuredError>\nCharReader::getStructuredErrors() const {\n  return _impl->getStructuredErrors();\n}\n\nbool CharReader::parse(char const* beginDoc, char const* endDoc, Value* root,\n                       String* errs) {\n  return _impl->parse(beginDoc, endDoc, root, errs);\n}\n\n//////////////////////////////////\n// global functions\n\nbool parseFromStream(CharReader::Factory const& fact, IStream& sin, Value* root,\n                     String* errs) {\n  OStringStream ssin;\n  ssin << sin.rdbuf();\n  String doc = std::move(ssin).str();\n  char const* begin = doc.data();\n  char const* end = begin + doc.size();\n  // Note that we do not actually need a null-terminator.\n  CharReaderPtr const reader(fact.newCharReader());\n  return reader->parse(begin, end, root, errs);\n}\n\nIStream& operator>>(IStream& sin, Value& root) {\n  CharReaderBuilder b;\n  String errs;\n  bool ok = parseFromStream(b, sin, &root, &errs);\n  if (!ok) {\n    throwRuntimeError(errs);\n  }\n  return sin;\n}\n\n} // namespace Json\n"
  },
  {
    "path": "src/lib_json/json_tool.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef LIB_JSONCPP_JSON_TOOL_H_INCLUDED\n#define LIB_JSONCPP_JSON_TOOL_H_INCLUDED\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include <json/config.h>\n#endif\n\n// Also support old flag NO_LOCALE_SUPPORT\n#ifdef NO_LOCALE_SUPPORT\n#define JSONCPP_NO_LOCALE_SUPPORT\n#endif\n\n#ifndef JSONCPP_NO_LOCALE_SUPPORT\n#include <clocale>\n#endif\n\n/* This header provides common string manipulation support, such as UTF-8,\n * portable conversion from/to string...\n *\n * It is an internal header that must not be exposed.\n */\n\nnamespace Json {\nstatic inline char getDecimalPoint() {\n#ifdef JSONCPP_NO_LOCALE_SUPPORT\n  return '\\0';\n#else\n  struct lconv* lc = localeconv();\n  return lc ? *(lc->decimal_point) : '\\0';\n#endif\n}\n\n/// Converts a unicode code-point to UTF-8.\nstatic inline String codePointToUTF8(unsigned int cp) {\n  String result;\n\n  // based on description from http://en.wikipedia.org/wiki/UTF-8\n\n  if (cp <= 0x7f) {\n    result.resize(1);\n    result[0] = static_cast<char>(cp);\n  } else if (cp <= 0x7FF) {\n    result.resize(2);\n    result[1] = static_cast<char>(0x80 | (0x3f & cp));\n    result[0] = static_cast<char>(0xC0 | (0x1f & (cp >> 6)));\n  } else if (cp <= 0xFFFF) {\n    result.resize(3);\n    result[2] = static_cast<char>(0x80 | (0x3f & cp));\n    result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));\n    result[0] = static_cast<char>(0xE0 | (0xf & (cp >> 12)));\n  } else if (cp <= 0x10FFFF) {\n    result.resize(4);\n    result[3] = static_cast<char>(0x80 | (0x3f & cp));\n    result[2] = static_cast<char>(0x80 | (0x3f & (cp >> 6)));\n    result[1] = static_cast<char>(0x80 | (0x3f & (cp >> 12)));\n    result[0] = static_cast<char>(0xF0 | (0x7 & (cp >> 18)));\n  }\n\n  return result;\n}\n\nenum {\n  /// Constant that specify the size of the buffer that must be passed to\n  /// uintToString.\n  uintToStringBufferSize = 3 * sizeof(LargestUInt) + 1\n};\n\n// Defines a char buffer for use with uintToString().\nusing UIntToStringBuffer = char[uintToStringBufferSize];\n\n/** Converts an unsigned integer to string.\n * @param value Unsigned integer to convert to string\n * @param current Input/Output string buffer.\n *        Must have at least uintToStringBufferSize chars free.\n */\nstatic inline void uintToString(LargestUInt value, char*& current) {\n  *--current = 0;\n  do {\n    *--current = static_cast<char>(value % 10U + static_cast<unsigned>('0'));\n    value /= 10;\n  } while (value != 0);\n}\n\n/** Change ',' to '.' everywhere in buffer.\n *\n * We had a sophisticated way, but it did not work in WinCE.\n * @see https://github.com/open-source-parsers/jsoncpp/pull/9\n */\ntemplate <typename Iter> Iter fixNumericLocale(Iter begin, Iter end) {\n  for (; begin != end; ++begin) {\n    if (*begin == ',') {\n      *begin = '.';\n    }\n  }\n  return begin;\n}\n\ntemplate <typename Iter> void fixNumericLocaleInput(Iter begin, Iter end) {\n  char decimalPoint = getDecimalPoint();\n  if (decimalPoint == '\\0' || decimalPoint == '.') {\n    return;\n  }\n  for (; begin != end; ++begin) {\n    if (*begin == '.') {\n      *begin = decimalPoint;\n    }\n  }\n}\n\n/**\n * Return iterator that would be the new end of the range [begin,end), if we\n * were to delete zeros in the end of string, but not the last zero before '.'.\n */\ntemplate <typename Iter>\nIter fixZerosInTheEnd(Iter begin, Iter end, unsigned int precision) {\n  for (; begin != end; --end) {\n    if (*(end - 1) != '0') {\n      return end;\n    }\n    // Don't delete the last zero before the decimal point.\n    if (begin != (end - 1) && begin != (end - 2) && *(end - 2) == '.') {\n      if (precision) {\n        return end;\n      }\n      return end - 2;\n    }\n  }\n  return end;\n}\n\n} // namespace Json\n\n#endif // LIB_JSONCPP_JSON_TOOL_H_INCLUDED\n"
  },
  {
    "path": "src/lib_json/json_value.cpp",
    "content": "// Copyright 2011 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include <json/assertions.h>\n#include <json/value.h>\n#include <json/writer.h>\n#endif // if !defined(JSON_IS_AMALGAMATION)\n#include <algorithm>\n#include <cassert>\n#include <cmath>\n#include <cstddef>\n#include <cstring>\n#include <iostream>\n#include <sstream>\n#include <utility>\n\n#ifdef JSONCPP_HAS_STRING_VIEW\n#include <string_view>\n#endif\n\n// Provide implementation equivalent of std::snprintf for older _MSC compilers\n#if defined(_MSC_VER) && _MSC_VER < 1900\n#include <stdarg.h>\nstatic int msvc_pre1900_c99_vsnprintf(char* outBuf, size_t size,\n                                      const char* format, va_list ap) {\n  int count = -1;\n  if (size != 0)\n    count = _vsnprintf_s(outBuf, size, _TRUNCATE, format, ap);\n  if (count == -1)\n    count = _vscprintf(format, ap);\n  return count;\n}\n\nint JSON_API msvc_pre1900_c99_snprintf(char* outBuf, size_t size,\n                                       const char* format, ...) {\n  va_list ap;\n  va_start(ap, format);\n  const int count = msvc_pre1900_c99_vsnprintf(outBuf, size, format, ap);\n  va_end(ap);\n  return count;\n}\n#endif\n\n// Disable warning C4702 : unreachable code\n#if defined(_MSC_VER)\n#pragma warning(disable : 4702)\n#endif\n\n#define JSON_ASSERT_UNREACHABLE assert(false)\n\nnamespace Json {\ntemplate <typename T>\nstatic std::unique_ptr<T> cloneUnique(const std::unique_ptr<T>& p) {\n  std::unique_ptr<T> r;\n  if (p) {\n    r = std::unique_ptr<T>(new T(*p));\n  }\n  return r;\n}\n\n// This is a walkaround to avoid the static initialization of Value::null.\n// kNull must be word-aligned to avoid crashing on ARM.  We use an alignment of\n// 8 (instead of 4) as a bit of future-proofing.\n#if defined(__ARMEL__)\n#define ALIGNAS(byte_alignment) __attribute__((aligned(byte_alignment)))\n#else\n#define ALIGNAS(byte_alignment)\n#endif\n\n// static\nValue const& Value::nullSingleton() {\n  static Value const nullStatic;\n  return nullStatic;\n}\n\n#if JSON_USE_NULLREF\n// for backwards compatibility, we'll leave these global references around, but\n// DO NOT use them in JSONCPP library code any more!\n// static\nValue const& Value::null = Value::nullSingleton();\n\n// static\nValue const& Value::nullRef = Value::nullSingleton();\n#endif\n\n#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\ntemplate <typename T, typename U>\nstatic inline bool InRange(double d, T min, U max) {\n  // The casts can lose precision, but we are looking only for\n  // an approximate range. Might fail on edge cases though. ~cdunn\n  return d >= static_cast<double>(min) && d <= static_cast<double>(max) &&\n         !(static_cast<U>(d) == min && d != static_cast<double>(min));\n}\n#else  // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\nstatic inline double integerToDouble(Json::UInt64 value) {\n  return static_cast<double>(Int64(value / 2)) * 2.0 +\n         static_cast<double>(Int64(value & 1));\n}\n\ntemplate <typename T> static inline double integerToDouble(T value) {\n  return static_cast<double>(value);\n}\n\ntemplate <typename T, typename U>\nstatic inline bool InRange(double d, T min, U max) {\n  return d >= integerToDouble(min) && d <= integerToDouble(max) &&\n         !(static_cast<U>(d) == min && d != integerToDouble(min));\n}\n#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n\n/** Duplicates the specified string value.\n * @param value Pointer to the string to duplicate. Must be zero-terminated if\n *              length is \"unknown\".\n * @param length Length of the value. if equals to unknown, then it will be\n *               computed using strlen(value).\n * @return Pointer on the duplicate instance of string.\n */\nstatic inline char* duplicateStringValue(const char* value, size_t length) {\n  // Avoid an integer overflow in the call to malloc below by limiting length\n  // to a sane value.\n  if (length >= static_cast<size_t>(Value::maxInt))\n    length = Value::maxInt - 1;\n\n  auto newString = static_cast<char*>(malloc(length + 1));\n  if (newString == nullptr) {\n    throwRuntimeError(\"in Json::Value::duplicateStringValue(): \"\n                      \"Failed to allocate string value buffer\");\n  }\n  memcpy(newString, value, length);\n  newString[length] = 0;\n  return newString;\n}\n\n/* Record the length as a prefix.\n */\nstatic inline char* duplicateAndPrefixStringValue(const char* value,\n                                                  unsigned int length) {\n  // Avoid an integer overflow in the call to malloc below by limiting length\n  // to a sane value.\n  JSON_ASSERT_MESSAGE(length <= static_cast<unsigned>(Value::maxInt) -\n                                    sizeof(unsigned) - 1U,\n                      \"in Json::Value::duplicateAndPrefixStringValue(): \"\n                      \"length too big for prefixing\");\n  size_t actualLength = sizeof(length) + length + 1;\n  auto newString = static_cast<char*>(malloc(actualLength));\n  if (newString == nullptr) {\n    throwRuntimeError(\"in Json::Value::duplicateAndPrefixStringValue(): \"\n                      \"Failed to allocate string value buffer\");\n  }\n  *reinterpret_cast<unsigned*>(newString) = length;\n  memcpy(newString + sizeof(unsigned), value, length);\n  newString[actualLength - 1U] =\n      0; // to avoid buffer over-run accidents by users later\n  return newString;\n}\ninline static void decodePrefixedString(bool isPrefixed, char const* prefixed,\n                                        unsigned* length, char const** value) {\n  if (!isPrefixed) {\n    *length = static_cast<unsigned>(strlen(prefixed));\n    *value = prefixed;\n  } else {\n    *length = *reinterpret_cast<unsigned const*>(prefixed);\n    *value = prefixed + sizeof(unsigned);\n  }\n}\n/** Free the string duplicated by\n * duplicateStringValue()/duplicateAndPrefixStringValue().\n */\n#if JSONCPP_USE_SECURE_MEMORY\nstatic inline void releasePrefixedStringValue(char* value) {\n  unsigned length = 0;\n  char const* valueDecoded;\n  decodePrefixedString(true, value, &length, &valueDecoded);\n  size_t const size = sizeof(unsigned) + length + 1U;\n  memset(value, 0, size);\n  free(value);\n}\nstatic inline void releaseStringValue(char* value, unsigned length) {\n  // length==0 => we allocated the strings memory\n  size_t size = (length == 0) ? strlen(value) : length;\n  memset(value, 0, size);\n  free(value);\n}\n#else  // !JSONCPP_USE_SECURE_MEMORY\nstatic inline void releasePrefixedStringValue(char* value) { free(value); }\nstatic inline void releaseStringValue(char* value, unsigned) { free(value); }\n#endif // JSONCPP_USE_SECURE_MEMORY\n\n} // namespace Json\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// ValueInternals...\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n#if !defined(JSON_IS_AMALGAMATION)\n\n#include \"json_valueiterator.inl\"\n#endif // if !defined(JSON_IS_AMALGAMATION)\n\nnamespace Json {\n\n#if JSON_USE_EXCEPTION\nException::Exception(String msg) : msg_(std::move(msg)) {}\nException::~Exception() noexcept = default;\nchar const* Exception::what() const noexcept { return msg_.c_str(); }\nRuntimeError::RuntimeError(String const& msg) : Exception(msg) {}\nLogicError::LogicError(String const& msg) : Exception(msg) {}\nJSONCPP_NORETURN void throwRuntimeError(String const& msg) {\n  throw RuntimeError(msg);\n}\nJSONCPP_NORETURN void throwLogicError(String const& msg) {\n  throw LogicError(msg);\n}\n#else // !JSON_USE_EXCEPTION\nJSONCPP_NORETURN void throwRuntimeError(String const& msg) {\n  std::cerr << msg << std::endl;\n  abort();\n}\nJSONCPP_NORETURN void throwLogicError(String const& msg) {\n  std::cerr << msg << std::endl;\n  abort();\n}\n#endif\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// class Value::CZString\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\n// Notes: policy_ indicates if the string was allocated when\n// a string is stored.\n\nValue::CZString::CZString(ArrayIndex index) : cstr_(nullptr), index_(index) {}\n\nValue::CZString::CZString(char const* str, unsigned length,\n                          DuplicationPolicy allocate)\n    : cstr_(str) {\n  // allocate != duplicate\n  storage_.policy_ = allocate & 0x3;\n  storage_.length_ = length & 0x3FFFFFFF;\n}\n\nValue::CZString::CZString(const CZString& other) {\n  cstr_ = (other.storage_.policy_ != noDuplication && other.cstr_ != nullptr\n               ? duplicateStringValue(other.cstr_, other.storage_.length_)\n               : other.cstr_);\n  if (other.cstr_) {\n    storage_.policy_ =\n        static_cast<unsigned>(\n            other.cstr_\n                ? (static_cast<DuplicationPolicy>(other.storage_.policy_) ==\n                           noDuplication\n                       ? noDuplication\n                       : duplicate)\n                : static_cast<DuplicationPolicy>(other.storage_.policy_)) &\n        3U;\n    storage_.length_ = other.storage_.length_;\n  } else {\n    index_ = other.index_;\n  }\n}\n\nValue::CZString::CZString(CZString&& other) noexcept : cstr_(other.cstr_) {\n  if (other.cstr_) {\n    storage_.policy_ = other.storage_.policy_;\n    storage_.length_ = other.storage_.length_;\n  } else {\n    index_ = other.index_;\n  }\n  other.cstr_ = nullptr;\n}\n\nValue::CZString::~CZString() {\n  if (cstr_ && storage_.policy_ == duplicate) {\n    releaseStringValue(const_cast<char*>(cstr_),\n                       storage_.length_ + 1U); // +1 for null terminating\n                                               // character for sake of\n                                               // completeness but not actually\n                                               // necessary\n  }\n}\n\nvoid Value::CZString::swap(CZString& other) {\n  std::swap(cstr_, other.cstr_);\n  std::swap(index_, other.index_);\n}\n\nValue::CZString& Value::CZString::operator=(const CZString& other) {\n  cstr_ = other.cstr_;\n  index_ = other.index_;\n  return *this;\n}\n\nValue::CZString& Value::CZString::operator=(CZString&& other) noexcept {\n  if (cstr_ && storage_.policy_ == duplicate) {\n    releasePrefixedStringValue(const_cast<char*>(cstr_));\n  }\n  cstr_ = other.cstr_;\n  if (other.cstr_) {\n    storage_.policy_ = other.storage_.policy_;\n    storage_.length_ = other.storage_.length_;\n  } else {\n    index_ = other.index_;\n  }\n  other.cstr_ = nullptr;\n  return *this;\n}\n\nbool Value::CZString::operator<(const CZString& other) const {\n  if (!cstr_)\n    return index_ < other.index_;\n  // return strcmp(cstr_, other.cstr_) < 0;\n  // Assume both are strings.\n  unsigned this_len = this->storage_.length_;\n  unsigned other_len = other.storage_.length_;\n  unsigned min_len = std::min<unsigned>(this_len, other_len);\n  JSON_ASSERT(this->cstr_ && other.cstr_);\n  int comp = memcmp(this->cstr_, other.cstr_, min_len);\n  if (comp < 0)\n    return true;\n  if (comp > 0)\n    return false;\n  return (this_len < other_len);\n}\n\nbool Value::CZString::operator==(const CZString& other) const {\n  if (!cstr_)\n    return index_ == other.index_;\n  // return strcmp(cstr_, other.cstr_) == 0;\n  // Assume both are strings.\n  unsigned this_len = this->storage_.length_;\n  unsigned other_len = other.storage_.length_;\n  if (this_len != other_len)\n    return false;\n  JSON_ASSERT(this->cstr_ && other.cstr_);\n  int comp = memcmp(this->cstr_, other.cstr_, this_len);\n  return comp == 0;\n}\n\nArrayIndex Value::CZString::index() const { return index_; }\n\n// const char* Value::CZString::c_str() const { return cstr_; }\nconst char* Value::CZString::data() const { return cstr_; }\nunsigned Value::CZString::length() const { return storage_.length_; }\nbool Value::CZString::isStaticString() const {\n  return storage_.policy_ == noDuplication;\n}\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// class Value::Value\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\n/*! \\internal Default constructor initialization must be equivalent to:\n * memset( this, 0, sizeof(Value) )\n * This optimization is used in ValueInternalMap fast allocator.\n */\nValue::Value(ValueType type) {\n  static char const emptyString[] = \"\";\n  initBasic(type);\n  switch (type) {\n  case nullValue:\n    break;\n  case intValue:\n  case uintValue:\n    value_.int_ = 0;\n    break;\n  case realValue:\n    value_.real_ = 0.0;\n    break;\n  case stringValue:\n    // allocated_ == false, so this is safe.\n    value_.string_ = const_cast<char*>(static_cast<char const*>(emptyString));\n    break;\n  case arrayValue:\n  case objectValue:\n    value_.map_ = new ObjectValues();\n    break;\n  case booleanValue:\n    value_.bool_ = false;\n    break;\n  default:\n    JSON_ASSERT_UNREACHABLE;\n  }\n}\n\nValue::Value(Int value) {\n  initBasic(intValue);\n  value_.int_ = value;\n}\n\nValue::Value(UInt value) {\n  initBasic(uintValue);\n  value_.uint_ = value;\n}\n#if defined(JSON_HAS_INT64)\nValue::Value(Int64 value) {\n  initBasic(intValue);\n  value_.int_ = value;\n}\nValue::Value(UInt64 value) {\n  initBasic(uintValue);\n  value_.uint_ = value;\n}\n#endif // defined(JSON_HAS_INT64)\n\nValue::Value(double value) {\n  initBasic(realValue);\n  value_.real_ = value;\n}\n\nValue::Value(const char* value) {\n  initBasic(stringValue, true);\n  JSON_ASSERT_MESSAGE(value != nullptr,\n                      \"Null Value Passed to Value Constructor\");\n  value_.string_ = duplicateAndPrefixStringValue(\n      value, static_cast<unsigned>(strlen(value)));\n}\n\nValue::Value(const char* begin, const char* end) {\n  initBasic(stringValue, true);\n  value_.string_ =\n      duplicateAndPrefixStringValue(begin, static_cast<unsigned>(end - begin));\n}\n\nValue::Value(const String& value) {\n  initBasic(stringValue, true);\n  value_.string_ = duplicateAndPrefixStringValue(\n      value.data(), static_cast<unsigned>(value.length()));\n}\n\n#ifdef JSONCPP_HAS_STRING_VIEW\nValue::Value(std::string_view value) {\n  initBasic(stringValue, true);\n  value_.string_ = duplicateAndPrefixStringValue(\n      value.data(), static_cast<unsigned>(value.length()));\n}\n#endif\n\nValue::Value(const StaticString& value) {\n  initBasic(stringValue);\n  value_.string_ = const_cast<char*>(value.c_str());\n}\n\nValue::Value(bool value) {\n  initBasic(booleanValue);\n  value_.bool_ = value;\n}\n\nValue::Value(const Value& other) {\n  dupPayload(other);\n  dupMeta(other);\n}\n\nValue::Value(Value&& other) noexcept {\n  initBasic(nullValue);\n  swap(other);\n}\n\nValue::~Value() {\n  releasePayload();\n  value_.uint_ = 0;\n}\n\nValue& Value::operator=(const Value& other) {\n  Value(other).swap(*this);\n  return *this;\n}\n\nValue& Value::operator=(Value&& other) noexcept {\n  other.swap(*this);\n  return *this;\n}\n\nvoid Value::swapPayload(Value& other) {\n  std::swap(bits_, other.bits_);\n  std::swap(value_, other.value_);\n}\n\nvoid Value::copyPayload(const Value& other) {\n  releasePayload();\n  dupPayload(other);\n}\n\nvoid Value::swap(Value& other) {\n  swapPayload(other);\n  std::swap(comments_, other.comments_);\n  std::swap(start_, other.start_);\n  std::swap(limit_, other.limit_);\n}\n\nvoid Value::copy(const Value& other) {\n  copyPayload(other);\n  dupMeta(other);\n}\n\nValueType Value::type() const {\n  return static_cast<ValueType>(bits_.value_type_);\n}\n\nint Value::compare(const Value& other) const {\n  if (*this < other)\n    return -1;\n  if (*this > other)\n    return 1;\n  return 0;\n}\n\nbool Value::operator<(const Value& other) const {\n  int typeDelta = type() - other.type();\n  if (typeDelta)\n    return typeDelta < 0;\n  switch (type()) {\n  case nullValue:\n    return false;\n  case intValue:\n    return value_.int_ < other.value_.int_;\n  case uintValue:\n    return value_.uint_ < other.value_.uint_;\n  case realValue:\n    return value_.real_ < other.value_.real_;\n  case booleanValue:\n    return value_.bool_ < other.value_.bool_;\n  case stringValue: {\n    if ((value_.string_ == nullptr) || (other.value_.string_ == nullptr)) {\n      return other.value_.string_ != nullptr;\n    }\n    unsigned this_len;\n    unsigned other_len;\n    char const* this_str;\n    char const* other_str;\n    decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,\n                         &this_str);\n    decodePrefixedString(other.isAllocated(), other.value_.string_, &other_len,\n                         &other_str);\n    unsigned min_len = std::min<unsigned>(this_len, other_len);\n    JSON_ASSERT(this_str && other_str);\n    int comp = memcmp(this_str, other_str, min_len);\n    if (comp < 0)\n      return true;\n    if (comp > 0)\n      return false;\n    return (this_len < other_len);\n  }\n  case arrayValue:\n  case objectValue: {\n    auto thisSize = value_.map_->size();\n    auto otherSize = other.value_.map_->size();\n    if (thisSize != otherSize)\n      return thisSize < otherSize;\n    return (*value_.map_) < (*other.value_.map_);\n  }\n  default:\n    JSON_ASSERT_UNREACHABLE;\n  }\n  return false; // unreachable\n}\n\nbool Value::operator<=(const Value& other) const { return !(other < *this); }\n\nbool Value::operator>=(const Value& other) const { return !(*this < other); }\n\nbool Value::operator>(const Value& other) const { return other < *this; }\n\nbool Value::operator==(const Value& other) const {\n  if (type() != other.type())\n    return false;\n  switch (type()) {\n  case nullValue:\n    return true;\n  case intValue:\n    return value_.int_ == other.value_.int_;\n  case uintValue:\n    return value_.uint_ == other.value_.uint_;\n  case realValue:\n    return value_.real_ == other.value_.real_;\n  case booleanValue:\n    return value_.bool_ == other.value_.bool_;\n  case stringValue: {\n    if ((value_.string_ == nullptr) || (other.value_.string_ == nullptr)) {\n      return (value_.string_ == other.value_.string_);\n    }\n    unsigned this_len;\n    unsigned other_len;\n    char const* this_str;\n    char const* other_str;\n    decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,\n                         &this_str);\n    decodePrefixedString(other.isAllocated(), other.value_.string_, &other_len,\n                         &other_str);\n    if (this_len != other_len)\n      return false;\n    JSON_ASSERT(this_str && other_str);\n    int comp = memcmp(this_str, other_str, this_len);\n    return comp == 0;\n  }\n  case arrayValue:\n  case objectValue:\n    return value_.map_->size() == other.value_.map_->size() &&\n           (*value_.map_) == (*other.value_.map_);\n  default:\n    JSON_ASSERT_UNREACHABLE;\n  }\n  return false; // unreachable\n}\n\nbool Value::operator!=(const Value& other) const { return !(*this == other); }\n\nconst char* Value::asCString() const {\n  JSON_ASSERT_MESSAGE(type() == stringValue,\n                      \"in Json::Value::asCString(): requires stringValue\");\n  if (value_.string_ == nullptr)\n    return nullptr;\n  unsigned this_len;\n  char const* this_str;\n  decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,\n                       &this_str);\n  return this_str;\n}\n\n#if JSONCPP_USE_SECURE_MEMORY\nunsigned Value::getCStringLength() const {\n  JSON_ASSERT_MESSAGE(type() == stringValue,\n                      \"in Json::Value::asCString(): requires stringValue\");\n  if (value_.string_ == 0)\n    return 0;\n  unsigned this_len;\n  char const* this_str;\n  decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,\n                       &this_str);\n  return this_len;\n}\n#endif\n\nbool Value::getString(char const** begin, char const** end) const {\n  if (type() != stringValue)\n    return false;\n  if (value_.string_ == nullptr)\n    return false;\n  unsigned length;\n  decodePrefixedString(this->isAllocated(), this->value_.string_, &length,\n                       begin);\n  *end = *begin + length;\n  return true;\n}\n\n#ifdef JSONCPP_HAS_STRING_VIEW\nbool Value::getString(std::string_view* str) const {\n  if (type() != stringValue)\n    return false;\n  if (value_.string_ == nullptr)\n    return false;\n  const char* begin;\n  unsigned length;\n  decodePrefixedString(this->isAllocated(), this->value_.string_, &length,\n                       &begin);\n  *str = std::string_view(begin, length);\n  return true;\n}\n#endif\n\nString Value::asString() const {\n  switch (type()) {\n  case nullValue:\n    return \"\";\n  case stringValue: {\n    if (value_.string_ == nullptr)\n      return \"\";\n    unsigned this_len;\n    char const* this_str;\n    decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len,\n                         &this_str);\n    return String(this_str, this_len);\n  }\n  case booleanValue:\n    return value_.bool_ ? \"true\" : \"false\";\n  case intValue:\n    return valueToString(value_.int_);\n  case uintValue:\n    return valueToString(value_.uint_);\n  case realValue:\n    return valueToString(value_.real_);\n  default:\n    JSON_FAIL_MESSAGE(\"Type is not convertible to string\");\n  }\n}\n\nValue::Int Value::asInt() const {\n  switch (type()) {\n  case intValue:\n    JSON_ASSERT_MESSAGE(isInt(), \"LargestInt out of Int range\");\n    return Int(value_.int_);\n  case uintValue:\n    JSON_ASSERT_MESSAGE(isInt(), \"LargestUInt out of Int range\");\n    return Int(value_.uint_);\n  case realValue:\n    JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt, maxInt),\n                        \"double out of Int range\");\n    return Int(value_.real_);\n  case nullValue:\n    return 0;\n  case booleanValue:\n    return value_.bool_ ? 1 : 0;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to Int.\");\n}\n\nValue::UInt Value::asUInt() const {\n  switch (type()) {\n  case intValue:\n    JSON_ASSERT_MESSAGE(isUInt(), \"LargestInt out of UInt range\");\n    return UInt(value_.int_);\n  case uintValue:\n    JSON_ASSERT_MESSAGE(isUInt(), \"LargestUInt out of UInt range\");\n    return UInt(value_.uint_);\n  case realValue:\n    JSON_ASSERT_MESSAGE(InRange(value_.real_, 0u, maxUInt),\n                        \"double out of UInt range\");\n    return UInt(value_.real_);\n  case nullValue:\n    return 0;\n  case booleanValue:\n    return value_.bool_ ? 1 : 0;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to UInt.\");\n}\n\n#if defined(JSON_HAS_INT64)\n\nValue::Int64 Value::asInt64() const {\n  switch (type()) {\n  case intValue:\n    return Int64(value_.int_);\n  case uintValue:\n    JSON_ASSERT_MESSAGE(isInt64(), \"LargestUInt out of Int64 range\");\n    return Int64(value_.uint_);\n  case realValue:\n    // If the double value is in proximity to minInt64, it will be rounded to\n    // minInt64. The correct value in this scenario is indeterminable\n    JSON_ASSERT_MESSAGE(\n        value_.real_ != minInt64,\n        \"Double value is minInt64, precise value cannot be determined\");\n    JSON_ASSERT_MESSAGE(InRange(value_.real_, minInt64, maxInt64),\n                        \"double out of Int64 range\");\n    return Int64(value_.real_);\n  case nullValue:\n    return 0;\n  case booleanValue:\n    return value_.bool_ ? 1 : 0;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to Int64.\");\n}\n\nValue::UInt64 Value::asUInt64() const {\n  switch (type()) {\n  case intValue:\n    JSON_ASSERT_MESSAGE(isUInt64(), \"LargestInt out of UInt64 range\");\n    return UInt64(value_.int_);\n  case uintValue:\n    return UInt64(value_.uint_);\n  case realValue:\n    JSON_ASSERT_MESSAGE(InRange(value_.real_, 0u, maxUInt64),\n                        \"double out of UInt64 range\");\n    return UInt64(value_.real_);\n  case nullValue:\n    return 0;\n  case booleanValue:\n    return value_.bool_ ? 1 : 0;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to UInt64.\");\n}\n#endif // if defined(JSON_HAS_INT64)\n\nLargestInt Value::asLargestInt() const {\n#if defined(JSON_NO_INT64)\n  return asInt();\n#else\n  return asInt64();\n#endif\n}\n\nLargestUInt Value::asLargestUInt() const {\n#if defined(JSON_NO_INT64)\n  return asUInt();\n#else\n  return asUInt64();\n#endif\n}\n\ndouble Value::asDouble() const {\n  switch (type()) {\n  case intValue:\n    return static_cast<double>(value_.int_);\n  case uintValue:\n#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n    return static_cast<double>(value_.uint_);\n#else  // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n    return integerToDouble(value_.uint_);\n#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n  case realValue:\n    return value_.real_;\n  case nullValue:\n    return 0.0;\n  case booleanValue:\n    return value_.bool_ ? 1.0 : 0.0;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to double.\");\n}\n\nfloat Value::asFloat() const {\n  switch (type()) {\n  case intValue:\n    return static_cast<float>(value_.int_);\n  case uintValue:\n#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n    return static_cast<float>(value_.uint_);\n#else  // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n    // This can fail (silently?) if the value is bigger than MAX_FLOAT.\n    return static_cast<float>(integerToDouble(value_.uint_));\n#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n  case realValue:\n    return static_cast<float>(value_.real_);\n  case nullValue:\n    return 0.0;\n  case booleanValue:\n    return value_.bool_ ? 1.0F : 0.0F;\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to float.\");\n}\n\nbool Value::asBool() const {\n  switch (type()) {\n  case booleanValue:\n    return value_.bool_;\n  case nullValue:\n    return false;\n  case intValue:\n    return value_.int_ != 0;\n  case uintValue:\n    return value_.uint_ != 0;\n  case realValue: {\n    // According to JavaScript language zero or NaN is regarded as false\n    const auto value_classification = std::fpclassify(value_.real_);\n    return value_classification != FP_ZERO && value_classification != FP_NAN;\n  }\n  default:\n    break;\n  }\n  JSON_FAIL_MESSAGE(\"Value is not convertible to bool.\");\n}\n\nbool Value::isConvertibleTo(ValueType other) const {\n  switch (other) {\n  case nullValue:\n    return (isNumeric() && asDouble() == 0.0) ||\n           (type() == booleanValue && !value_.bool_) ||\n           (type() == stringValue && asString().empty()) ||\n           (type() == arrayValue && value_.map_->empty()) ||\n           (type() == objectValue && value_.map_->empty()) ||\n           type() == nullValue;\n  case intValue:\n    return isInt() ||\n           (type() == realValue && InRange(value_.real_, minInt, maxInt)) ||\n           type() == booleanValue || type() == nullValue;\n  case uintValue:\n    return isUInt() ||\n           (type() == realValue && InRange(value_.real_, 0u, maxUInt)) ||\n           type() == booleanValue || type() == nullValue;\n  case realValue:\n    return isNumeric() || type() == booleanValue || type() == nullValue;\n  case booleanValue:\n    return isNumeric() || type() == booleanValue || type() == nullValue;\n  case stringValue:\n    return isNumeric() || type() == booleanValue || type() == stringValue ||\n           type() == nullValue;\n  case arrayValue:\n    return type() == arrayValue || type() == nullValue;\n  case objectValue:\n    return type() == objectValue || type() == nullValue;\n  }\n  JSON_ASSERT_UNREACHABLE;\n  return false;\n}\n\n/// Number of values in array or object\nArrayIndex Value::size() const {\n  switch (type()) {\n  case nullValue:\n  case intValue:\n  case uintValue:\n  case realValue:\n  case booleanValue:\n  case stringValue:\n    return 0;\n  case arrayValue: // size of the array is highest index + 1\n    if (!value_.map_->empty()) {\n      ObjectValues::const_iterator itLast = value_.map_->end();\n      --itLast;\n      return (*itLast).first.index() + 1;\n    }\n    return 0;\n  case objectValue:\n    return ArrayIndex(value_.map_->size());\n  }\n  JSON_ASSERT_UNREACHABLE;\n  return 0; // unreachable;\n}\n\nbool Value::empty() const {\n  if (isNull() || isArray() || isObject())\n    return size() == 0U;\n  return false;\n}\n\nValue::operator bool() const { return !isNull(); }\n\nvoid Value::clear() {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue ||\n                          type() == objectValue,\n                      \"in Json::Value::clear(): requires complex value\");\n  start_ = 0;\n  limit_ = 0;\n  switch (type()) {\n  case arrayValue:\n  case objectValue:\n    value_.map_->clear();\n    break;\n  default:\n    break;\n  }\n}\n\nvoid Value::resize(ArrayIndex newSize) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,\n                      \"in Json::Value::resize(): requires arrayValue\");\n  if (type() == nullValue)\n    *this = Value(arrayValue);\n  ArrayIndex oldSize = size();\n  if (newSize == 0)\n    clear();\n  else if (newSize > oldSize)\n    for (ArrayIndex i = oldSize; i < newSize; ++i)\n      (*this)[i];\n  else {\n    for (ArrayIndex index = newSize; index < oldSize; ++index) {\n      value_.map_->erase(index);\n    }\n    JSON_ASSERT(size() == newSize);\n  }\n}\n\nValue& Value::operator[](ArrayIndex index) {\n  JSON_ASSERT_MESSAGE(\n      type() == nullValue || type() == arrayValue,\n      \"in Json::Value::operator[](ArrayIndex): requires arrayValue\");\n  if (type() == nullValue)\n    *this = Value(arrayValue);\n  CZString key(index);\n  auto it = value_.map_->lower_bound(key);\n  if (it != value_.map_->end() && (*it).first == key)\n    return (*it).second;\n\n  ObjectValues::value_type defaultValue(key, nullSingleton());\n  it = value_.map_->insert(it, defaultValue);\n  return (*it).second;\n}\n\nValue& Value::operator[](int index) {\n  JSON_ASSERT_MESSAGE(\n      index >= 0,\n      \"in Json::Value::operator[](int index): index cannot be negative\");\n  return (*this)[ArrayIndex(index)];\n}\n\nconst Value& Value::operator[](ArrayIndex index) const {\n  JSON_ASSERT_MESSAGE(\n      type() == nullValue || type() == arrayValue,\n      \"in Json::Value::operator[](ArrayIndex)const: requires arrayValue\");\n  if (type() == nullValue)\n    return nullSingleton();\n  CZString key(index);\n  ObjectValues::const_iterator it = value_.map_->find(key);\n  if (it == value_.map_->end())\n    return nullSingleton();\n  return (*it).second;\n}\n\nconst Value& Value::operator[](int index) const {\n  JSON_ASSERT_MESSAGE(\n      index >= 0,\n      \"in Json::Value::operator[](int index) const: index cannot be negative\");\n  return (*this)[ArrayIndex(index)];\n}\n\nvoid Value::initBasic(ValueType type, bool allocated) {\n  setType(type);\n  setIsAllocated(allocated);\n  comments_ = Comments{};\n  start_ = 0;\n  limit_ = 0;\n}\n\nvoid Value::dupPayload(const Value& other) {\n  setType(other.type());\n  setIsAllocated(false);\n  switch (type()) {\n  case nullValue:\n  case intValue:\n  case uintValue:\n  case realValue:\n  case booleanValue:\n    value_ = other.value_;\n    break;\n  case stringValue:\n    if (other.value_.string_ && other.isAllocated()) {\n      unsigned len;\n      char const* str;\n      decodePrefixedString(other.isAllocated(), other.value_.string_, &len,\n                           &str);\n      value_.string_ = duplicateAndPrefixStringValue(str, len);\n      setIsAllocated(true);\n    } else {\n      value_.string_ = other.value_.string_;\n    }\n    break;\n  case arrayValue:\n  case objectValue:\n    value_.map_ = new ObjectValues(*other.value_.map_);\n    break;\n  default:\n    JSON_ASSERT_UNREACHABLE;\n  }\n}\n\nvoid Value::releasePayload() {\n  switch (type()) {\n  case nullValue:\n  case intValue:\n  case uintValue:\n  case realValue:\n  case booleanValue:\n    break;\n  case stringValue:\n    if (isAllocated())\n      releasePrefixedStringValue(value_.string_);\n    break;\n  case arrayValue:\n  case objectValue:\n    delete value_.map_;\n    break;\n  default:\n    JSON_ASSERT_UNREACHABLE;\n  }\n}\n\nvoid Value::dupMeta(const Value& other) {\n  comments_ = other.comments_;\n  start_ = other.start_;\n  limit_ = other.limit_;\n}\n\n// Access an object value by name, create a null member if it does not exist.\n// @pre Type of '*this' is object or null.\n// @param key is null-terminated.\nValue& Value::resolveReference(const char* key) {\n  JSON_ASSERT_MESSAGE(\n      type() == nullValue || type() == objectValue,\n      \"in Json::Value::resolveReference(): requires objectValue\");\n  if (type() == nullValue)\n    *this = Value(objectValue);\n  CZString actualKey(key, static_cast<unsigned>(strlen(key)),\n                     CZString::noDuplication); // NOTE!\n  auto it = value_.map_->lower_bound(actualKey);\n  if (it != value_.map_->end() && (*it).first == actualKey)\n    return (*it).second;\n\n  ObjectValues::value_type defaultValue(actualKey, nullSingleton());\n  it = value_.map_->insert(it, defaultValue);\n  Value& value = (*it).second;\n  return value;\n}\n\n// @param key is not null-terminated.\nValue& Value::resolveReference(char const* key, char const* end) {\n  JSON_ASSERT_MESSAGE(\n      type() == nullValue || type() == objectValue,\n      \"in Json::Value::resolveReference(key, end): requires objectValue\");\n  if (type() == nullValue)\n    *this = Value(objectValue);\n  CZString actualKey(key, static_cast<unsigned>(end - key),\n                     CZString::duplicateOnCopy);\n  auto it = value_.map_->lower_bound(actualKey);\n  if (it != value_.map_->end() && (*it).first == actualKey)\n    return (*it).second;\n\n  ObjectValues::value_type defaultValue(actualKey, nullSingleton());\n  it = value_.map_->insert(it, defaultValue);\n  Value& value = (*it).second;\n  return value;\n}\n\nValue Value::get(ArrayIndex index, const Value& defaultValue) const {\n  const Value* value = &((*this)[index]);\n  return value == &nullSingleton() ? defaultValue : *value;\n}\n\nbool Value::isValidIndex(ArrayIndex index) const { return index < size(); }\n\nValue const* Value::find(char const* begin, char const* end) const {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,\n                      \"in Json::Value::find(begin, end): requires \"\n                      \"objectValue or nullValue\");\n  if (type() == nullValue)\n    return nullptr;\n  CZString actualKey(begin, static_cast<unsigned>(end - begin),\n                     CZString::noDuplication);\n  ObjectValues::const_iterator it = value_.map_->find(actualKey);\n  if (it == value_.map_->end())\n    return nullptr;\n  return &(*it).second;\n}\nValue const* Value::find(const String& key) const {\n  return find(key.data(), key.data() + key.length());\n}\n\nValue const* Value::findNull(const String& key) const {\n  return findValue<Value, &Value::isNull>(key);\n}\nValue const* Value::findBool(const String& key) const {\n  return findValue<Value, &Value::isBool>(key);\n}\nValue const* Value::findInt(const String& key) const {\n  return findValue<Value, &Value::isInt>(key);\n}\nValue const* Value::findInt64(const String& key) const {\n  return findValue<Value, &Value::isInt64>(key);\n}\nValue const* Value::findUInt(const String& key) const {\n  return findValue<Value, &Value::isUInt>(key);\n}\nValue const* Value::findUInt64(const String& key) const {\n  return findValue<Value, &Value::isUInt64>(key);\n}\nValue const* Value::findIntegral(const String& key) const {\n  return findValue<Value, &Value::isIntegral>(key);\n}\nValue const* Value::findDouble(const String& key) const {\n  return findValue<Value, &Value::isDouble>(key);\n}\nValue const* Value::findNumeric(const String& key) const {\n  return findValue<Value, &Value::isNumeric>(key);\n}\nValue const* Value::findString(const String& key) const {\n  return findValue<Value, &Value::isString>(key);\n}\nValue const* Value::findArray(const String& key) const {\n  return findValue<Value, &Value::isArray>(key);\n}\nValue const* Value::findObject(const String& key) const {\n  return findValue<Value, &Value::isObject>(key);\n}\n\nValue* Value::demand(char const* begin, char const* end) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,\n                      \"in Json::Value::demand(begin, end): requires \"\n                      \"objectValue or nullValue\");\n  return &resolveReference(begin, end);\n}\n#ifdef JSONCPP_HAS_STRING_VIEW\nconst Value& Value::operator[](std::string_view key) const {\n  Value const* found = find(key.data(), key.data() + key.length());\n  if (!found)\n    return nullSingleton();\n  return *found;\n}\nValue& Value::operator[](std::string_view key) {\n  return resolveReference(key.data(), key.data() + key.length());\n}\n#else\nconst Value& Value::operator[](const char* key) const {\n  Value const* found = find(key, key + strlen(key));\n  if (!found)\n    return nullSingleton();\n  return *found;\n}\nValue const& Value::operator[](const String& key) const {\n  Value const* found = find(key);\n  if (!found)\n    return nullSingleton();\n  return *found;\n}\n\nValue& Value::operator[](const char* key) {\n  return resolveReference(key, key + strlen(key));\n}\n\nValue& Value::operator[](const String& key) {\n  return resolveReference(key.data(), key.data() + key.length());\n}\n#endif\n\nValue& Value::operator[](const StaticString& key) {\n  return resolveReference(key.c_str());\n}\n\nValue& Value::append(const Value& value) { return append(Value(value)); }\n\nValue& Value::append(Value&& value) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,\n                      \"in Json::Value::append: requires arrayValue\");\n  if (type() == nullValue) {\n    *this = Value(arrayValue);\n  }\n  return this->value_.map_->emplace(size(), std::move(value)).first->second;\n}\n\nbool Value::insert(ArrayIndex index, const Value& newValue) {\n  return insert(index, Value(newValue));\n}\n\nbool Value::insert(ArrayIndex index, Value&& newValue) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue,\n                      \"in Json::Value::insert: requires arrayValue\");\n  ArrayIndex length = size();\n  if (index > length) {\n    return false;\n  }\n  for (ArrayIndex i = length; i > index; i--) {\n    (*this)[i] = std::move((*this)[i - 1]);\n  }\n  (*this)[index] = std::move(newValue);\n  return true;\n}\n\nValue Value::get(char const* begin, char const* end,\n                 Value const& defaultValue) const {\n  Value const* found = find(begin, end);\n  return !found ? defaultValue : *found;\n}\n#ifdef JSONCPP_HAS_STRING_VIEW\nValue Value::get(std::string_view key, const Value& defaultValue) const {\n  return get(key.data(), key.data() + key.length(), defaultValue);\n}\n#else\nValue Value::get(char const* key, Value const& defaultValue) const {\n  return get(key, key + strlen(key), defaultValue);\n}\nValue Value::get(String const& key, Value const& defaultValue) const {\n  return get(key.data(), key.data() + key.length(), defaultValue);\n}\n#endif\n\nbool Value::removeMember(const char* begin, const char* end, Value* removed) {\n  if (type() != objectValue) {\n    return false;\n  }\n  CZString actualKey(begin, static_cast<unsigned>(end - begin),\n                     CZString::noDuplication);\n  auto it = value_.map_->find(actualKey);\n  if (it == value_.map_->end())\n    return false;\n  if (removed)\n    *removed = std::move(it->second);\n  value_.map_->erase(it);\n  return true;\n}\n#ifdef JSONCPP_HAS_STRING_VIEW\nbool Value::removeMember(std::string_view key, Value* removed) {\n  return removeMember(key.data(), key.data() + key.length(), removed);\n}\n#else\nbool Value::removeMember(const char* key, Value* removed) {\n  return removeMember(key, key + strlen(key), removed);\n}\nbool Value::removeMember(String const& key, Value* removed) {\n  return removeMember(key.data(), key.data() + key.length(), removed);\n}\n#endif\n\n#ifdef JSONCPP_HAS_STRING_VIEW\nvoid Value::removeMember(std::string_view key) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,\n                      \"in Json::Value::removeMember(): requires objectValue\");\n  if (type() == nullValue)\n    return;\n\n  CZString actualKey(key.data(), unsigned(key.length()),\n                     CZString::noDuplication);\n  value_.map_->erase(actualKey);\n}\n#else\nvoid Value::removeMember(const char* key) {\n  JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,\n                      \"in Json::Value::removeMember(): requires objectValue\");\n  if (type() == nullValue)\n    return;\n\n  CZString actualKey(key, unsigned(strlen(key)), CZString::noDuplication);\n  value_.map_->erase(actualKey);\n}\nvoid Value::removeMember(const String& key) { removeMember(key.c_str()); }\n#endif\n\nbool Value::removeIndex(ArrayIndex index, Value* removed) {\n  if (type() != arrayValue) {\n    return false;\n  }\n  CZString key(index);\n  auto it = value_.map_->find(key);\n  if (it == value_.map_->end()) {\n    return false;\n  }\n  if (removed)\n    *removed = std::move(it->second);\n  ArrayIndex oldSize = size();\n  // shift left all items left, into the place of the \"removed\"\n  for (ArrayIndex i = index; i < (oldSize - 1); ++i) {\n    CZString keey(i);\n    (*value_.map_)[keey] = (*this)[i + 1];\n  }\n  // erase the last one (\"leftover\")\n  CZString keyLast(oldSize - 1);\n  auto itLast = value_.map_->find(keyLast);\n  value_.map_->erase(itLast);\n  return true;\n}\n\nbool Value::isMember(char const* begin, char const* end) const {\n  Value const* value = find(begin, end);\n  return nullptr != value;\n}\n#ifdef JSONCPP_HAS_STRING_VIEW\nbool Value::isMember(std::string_view key) const {\n  return isMember(key.data(), key.data() + key.length());\n}\n#else\nbool Value::isMember(char const* key) const {\n  return isMember(key, key + strlen(key));\n}\nbool Value::isMember(String const& key) const {\n  return isMember(key.data(), key.data() + key.length());\n}\n#endif\n\nValue::Members Value::getMemberNames() const {\n  JSON_ASSERT_MESSAGE(\n      type() == nullValue || type() == objectValue,\n      \"in Json::Value::getMemberNames(), value must be objectValue\");\n  if (type() == nullValue)\n    return Value::Members();\n  Members members;\n  members.reserve(value_.map_->size());\n  ObjectValues::const_iterator it = value_.map_->begin();\n  ObjectValues::const_iterator itEnd = value_.map_->end();\n  for (; it != itEnd; ++it) {\n    members.push_back(String((*it).first.data(), (*it).first.length()));\n  }\n  return members;\n}\n\nstatic bool IsIntegral(double d) {\n  double integral_part;\n  return modf(d, &integral_part) == 0.0;\n}\n\nbool Value::isNull() const { return type() == nullValue; }\n\nbool Value::isBool() const { return type() == booleanValue; }\n\nbool Value::isInt() const {\n  switch (type()) {\n  case intValue:\n#if defined(JSON_HAS_INT64)\n    return value_.int_ >= minInt && value_.int_ <= maxInt;\n#else\n    return true;\n#endif\n  case uintValue:\n    return value_.uint_ <= UInt(maxInt);\n  case realValue:\n    return value_.real_ >= minInt && value_.real_ <= maxInt &&\n           IsIntegral(value_.real_);\n  default:\n    break;\n  }\n  return false;\n}\n\nbool Value::isUInt() const {\n  switch (type()) {\n  case intValue:\n#if defined(JSON_HAS_INT64)\n    return value_.int_ >= 0 && LargestUInt(value_.int_) <= LargestUInt(maxUInt);\n#else\n    return value_.int_ >= 0;\n#endif\n  case uintValue:\n#if defined(JSON_HAS_INT64)\n    return value_.uint_ <= maxUInt;\n#else\n    return true;\n#endif\n  case realValue:\n    return value_.real_ >= 0 && value_.real_ <= maxUInt &&\n           IsIntegral(value_.real_);\n  default:\n    break;\n  }\n  return false;\n}\n\nbool Value::isInt64() const {\n#if defined(JSON_HAS_INT64)\n  switch (type()) {\n  case intValue:\n    return true;\n  case uintValue:\n    return value_.uint_ <= UInt64(maxInt64);\n  case realValue:\n    // Note that maxInt64 (= 2^63 - 1) is not exactly representable as a\n    // double, so double(maxInt64) will be rounded up to 2^63. Therefore we\n    // require the value to be strictly less than the limit.\n    // minInt64 is -2^63 which can be represented as a double, but since double\n    // values in its proximity are also rounded to -2^63, we require the value\n    // to be strictly greater than the limit to avoid returning 'true' for\n    // values that are not in the range\n    return value_.real_ > double(minInt64) && value_.real_ < double(maxInt64) &&\n           IsIntegral(value_.real_);\n  default:\n    break;\n  }\n#endif // JSON_HAS_INT64\n  return false;\n}\n\nbool Value::isUInt64() const {\n#if defined(JSON_HAS_INT64)\n  switch (type()) {\n  case intValue:\n    return value_.int_ >= 0;\n  case uintValue:\n    return true;\n  case realValue:\n    // Note that maxUInt64 (= 2^64 - 1) is not exactly representable as a\n    // double, so double(maxUInt64) will be rounded up to 2^64. Therefore we\n    // require the value to be strictly less than the limit.\n    return value_.real_ >= 0 && value_.real_ < maxUInt64AsDouble &&\n           IsIntegral(value_.real_);\n  default:\n    break;\n  }\n#endif // JSON_HAS_INT64\n  return false;\n}\n\nbool Value::isIntegral() const {\n  switch (type()) {\n  case intValue:\n  case uintValue:\n    return true;\n  case realValue:\n#if defined(JSON_HAS_INT64)\n    // Note that maxUInt64 (= 2^64 - 1) is not exactly representable as a\n    // double, so double(maxUInt64) will be rounded up to 2^64. Therefore we\n    // require the value to be strictly less than the limit.\n    // minInt64 is -2^63 which can be represented as a double, but since double\n    // values in its proximity are also rounded to -2^63, we require the value\n    // to be strictly greater than the limit to avoid returning 'true' for\n    // values that are not in the range\n    return value_.real_ > double(minInt64) &&\n           value_.real_ < maxUInt64AsDouble && IsIntegral(value_.real_);\n#else\n    return value_.real_ >= minInt && value_.real_ <= maxUInt &&\n           IsIntegral(value_.real_);\n#endif // JSON_HAS_INT64\n  default:\n    break;\n  }\n  return false;\n}\n\nbool Value::isDouble() const {\n  return type() == intValue || type() == uintValue || type() == realValue;\n}\n\nbool Value::isNumeric() const { return isDouble(); }\n\nbool Value::isString() const { return type() == stringValue; }\n\nbool Value::isArray() const { return type() == arrayValue; }\n\nbool Value::isObject() const { return type() == objectValue; }\n\nValue::Comments::Comments(const Comments& that)\n    : ptr_{cloneUnique(that.ptr_)} {}\n\nValue::Comments::Comments(Comments&& that) noexcept\n    : ptr_{std::move(that.ptr_)} {}\n\nValue::Comments& Value::Comments::operator=(const Comments& that) {\n  ptr_ = cloneUnique(that.ptr_);\n  return *this;\n}\n\nValue::Comments& Value::Comments::operator=(Comments&& that) noexcept {\n  ptr_ = std::move(that.ptr_);\n  return *this;\n}\n\nbool Value::Comments::has(CommentPlacement slot) const {\n  return ptr_ && !(*ptr_)[slot].empty();\n}\n\nString Value::Comments::get(CommentPlacement slot) const {\n  if (!ptr_)\n    return {};\n  return (*ptr_)[slot];\n}\n\nvoid Value::Comments::set(CommentPlacement slot, String comment) {\n  if (slot >= CommentPlacement::numberOfCommentPlacement)\n    return;\n  if (!ptr_)\n    ptr_ = std::unique_ptr<Array>(new Array());\n  (*ptr_)[slot] = std::move(comment);\n}\n\nvoid Value::setComment(String comment, CommentPlacement placement) {\n  if (!comment.empty() && (comment.back() == '\\n')) {\n    // Always discard trailing newline, to aid indentation.\n    comment.pop_back();\n  }\n  JSON_ASSERT_MESSAGE(\n      comment.empty() || comment[0] == '/',\n      \"in Json::Value::setComment(): Comments must start with /\");\n  comments_.set(placement, std::move(comment));\n}\n\nbool Value::hasComment(CommentPlacement placement) const {\n  return comments_.has(placement);\n}\n\nString Value::getComment(CommentPlacement placement) const {\n  return comments_.get(placement);\n}\n\nvoid Value::setOffsetStart(ptrdiff_t start) { start_ = start; }\n\nvoid Value::setOffsetLimit(ptrdiff_t limit) { limit_ = limit; }\n\nptrdiff_t Value::getOffsetStart() const { return start_; }\n\nptrdiff_t Value::getOffsetLimit() const { return limit_; }\n\nString Value::toStyledString() const {\n  StreamWriterBuilder builder;\n\n  String out = this->hasComment(commentBefore) ? \"\\n\" : \"\";\n  out += Json::writeString(builder, *this);\n  out += '\\n';\n\n  return out;\n}\n\nValue::const_iterator Value::begin() const {\n  switch (type()) {\n  case arrayValue:\n  case objectValue:\n    if (value_.map_)\n      return const_iterator(value_.map_->begin());\n    break;\n  default:\n    break;\n  }\n  return {};\n}\n\nValue::const_iterator Value::end() const {\n  switch (type()) {\n  case arrayValue:\n  case objectValue:\n    if (value_.map_)\n      return const_iterator(value_.map_->end());\n    break;\n  default:\n    break;\n  }\n  return {};\n}\n\nValue::iterator Value::begin() {\n  switch (type()) {\n  case arrayValue:\n  case objectValue:\n    if (value_.map_)\n      return iterator(value_.map_->begin());\n    break;\n  default:\n    break;\n  }\n  return iterator();\n}\n\nValue::iterator Value::end() {\n  switch (type()) {\n  case arrayValue:\n  case objectValue:\n    if (value_.map_)\n      return iterator(value_.map_->end());\n    break;\n  default:\n    break;\n  }\n  return iterator();\n}\n\n// class PathArgument\n// //////////////////////////////////////////////////////////////////\n\nPathArgument::PathArgument() = default;\n\nPathArgument::PathArgument(ArrayIndex index)\n    : index_(index), kind_(kindIndex) {}\n\nPathArgument::PathArgument(const char* key) : key_(key), kind_(kindKey) {}\n\nPathArgument::PathArgument(String key) : key_(std::move(key)), kind_(kindKey) {}\n\n// class Path\n// //////////////////////////////////////////////////////////////////\n\nPath::Path(const String& path, const PathArgument& a1, const PathArgument& a2,\n           const PathArgument& a3, const PathArgument& a4,\n           const PathArgument& a5) {\n  InArgs in;\n  in.reserve(5);\n  in.push_back(&a1);\n  in.push_back(&a2);\n  in.push_back(&a3);\n  in.push_back(&a4);\n  in.push_back(&a5);\n  makePath(path, in);\n}\n\nvoid Path::makePath(const String& path, const InArgs& in) {\n  const char* current = path.c_str();\n  const char* end = current + path.length();\n  auto itInArg = in.begin();\n  while (current != end) {\n    if (*current == '[') {\n      ++current;\n      if (*current == '%')\n        addPathInArg(path, in, itInArg, PathArgument::kindIndex);\n      else {\n        ArrayIndex index = 0;\n        for (; current != end && *current >= '0' && *current <= '9'; ++current)\n          index = index * 10 + ArrayIndex(*current - '0');\n        args_.push_back(index);\n      }\n      if (current == end || *++current != ']')\n        invalidPath(path, int(current - path.c_str()));\n    } else if (*current == '%') {\n      addPathInArg(path, in, itInArg, PathArgument::kindKey);\n      ++current;\n    } else if (*current == '.' || *current == ']') {\n      ++current;\n    } else {\n      const char* beginName = current;\n      while (current != end && !strchr(\"[.\", *current))\n        ++current;\n      args_.push_back(String(beginName, current));\n    }\n  }\n}\n\nvoid Path::addPathInArg(const String& /*path*/, const InArgs& in,\n                        InArgs::const_iterator& itInArg,\n                        PathArgument::Kind kind) {\n  if (itInArg == in.end()) {\n    // Error: missing argument %d\n  } else if ((*itInArg)->kind_ != kind) {\n    // Error: bad argument type\n  } else {\n    args_.push_back(**itInArg++);\n  }\n}\n\nvoid Path::invalidPath(const String& /*path*/, int /*location*/) {\n  // Error: invalid path.\n}\n\nconst Value& Path::resolve(const Value& root) const {\n  const Value* node = &root;\n  for (const auto& arg : args_) {\n    if (arg.kind_ == PathArgument::kindIndex) {\n      if (!node->isArray() || !node->isValidIndex(arg.index_)) {\n        // Error: unable to resolve path (array value expected at position... )\n        return Value::nullSingleton();\n      }\n      node = &((*node)[arg.index_]);\n    } else if (arg.kind_ == PathArgument::kindKey) {\n      if (!node->isObject()) {\n        // Error: unable to resolve path (object value expected at position...)\n        return Value::nullSingleton();\n      }\n      node = &((*node)[arg.key_]);\n      if (node == &Value::nullSingleton()) {\n        // Error: unable to resolve path (object has no member named '' at\n        // position...)\n        return Value::nullSingleton();\n      }\n    }\n  }\n  return *node;\n}\n\nValue Path::resolve(const Value& root, const Value& defaultValue) const {\n  const Value* node = &root;\n  for (const auto& arg : args_) {\n    if (arg.kind_ == PathArgument::kindIndex) {\n      if (!node->isArray() || !node->isValidIndex(arg.index_))\n        return defaultValue;\n      node = &((*node)[arg.index_]);\n    } else if (arg.kind_ == PathArgument::kindKey) {\n      if (!node->isObject())\n        return defaultValue;\n      node = &((*node)[arg.key_]);\n      if (node == &Value::nullSingleton())\n        return defaultValue;\n    }\n  }\n  return *node;\n}\n\nValue& Path::make(Value& root) const {\n  Value* node = &root;\n  for (const auto& arg : args_) {\n    if (arg.kind_ == PathArgument::kindIndex) {\n      if (!node->isArray()) {\n        // Error: node is not an array at position ...\n      }\n      node = &((*node)[arg.index_]);\n    } else if (arg.kind_ == PathArgument::kindKey) {\n      if (!node->isObject()) {\n        // Error: node is not an object at position...\n      }\n      node = &((*node)[arg.key_]);\n    }\n  }\n  return *node;\n}\n\n} // namespace Json\n"
  },
  {
    "path": "src/lib_json/json_valueiterator.inl",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n// included by json_value.cpp\n\nnamespace Json {\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// class ValueIteratorBase\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\nValueIteratorBase::ValueIteratorBase() : current_() {}\n\nValueIteratorBase::ValueIteratorBase(\n    const Value::ObjectValues::iterator& current)\n    : current_(current), isNull_(false) {}\n\nValue& ValueIteratorBase::deref() { return current_->second; }\nconst Value& ValueIteratorBase::deref() const { return current_->second; }\n\nvoid ValueIteratorBase::increment() { ++current_; }\n\nvoid ValueIteratorBase::decrement() { --current_; }\n\nValueIteratorBase::difference_type\nValueIteratorBase::computeDistance(const SelfType& other) const {\n  // Iterator for null value are initialized using the default\n  // constructor, which initialize current_ to the default\n  // std::map::iterator. As begin() and end() are two instance\n  // of the default std::map::iterator, they can not be compared.\n  // To allow this, we handle this comparison specifically.\n  if (isNull_ && other.isNull_) {\n    return 0;\n  }\n\n  // Usage of std::distance is not portable (does not compile with Sun Studio 12\n  // RogueWave STL,\n  // which is the one used by default).\n  // Using a portable hand-made version for non random iterator instead:\n  //   return difference_type( std::distance( current_, other.current_ ) );\n  difference_type myDistance = 0;\n  for (Value::ObjectValues::iterator it = current_; it != other.current_;\n       ++it) {\n    ++myDistance;\n  }\n  return myDistance;\n}\n\nbool ValueIteratorBase::isEqual(const SelfType& other) const {\n  if (isNull_) {\n    return other.isNull_;\n  }\n  return current_ == other.current_;\n}\n\nvoid ValueIteratorBase::copy(const SelfType& other) {\n  current_ = other.current_;\n  isNull_ = other.isNull_;\n}\n\nValue ValueIteratorBase::key() const {\n  const Value::CZString czstring = (*current_).first;\n  if (czstring.data()) {\n    if (czstring.isStaticString())\n      return Value(StaticString(czstring.data()));\n    return Value(czstring.data(), czstring.data() + czstring.length());\n  }\n  return Value(czstring.index());\n}\n\nUInt ValueIteratorBase::index() const {\n  const Value::CZString czstring = (*current_).first;\n  if (!czstring.data())\n    return czstring.index();\n  return Value::UInt(-1);\n}\n\nString ValueIteratorBase::name() const {\n  char const* keey;\n  char const* end;\n  keey = memberName(&end);\n  if (!keey)\n    return String();\n  return String(keey, end);\n}\n\nchar const* ValueIteratorBase::memberName() const {\n  const char* cname = (*current_).first.data();\n  return cname ? cname : \"\";\n}\n\nchar const* ValueIteratorBase::memberName(char const** end) const {\n  const char* cname = (*current_).first.data();\n  if (!cname) {\n    *end = nullptr;\n    return nullptr;\n  }\n  *end = cname + (*current_).first.length();\n  return cname;\n}\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// class ValueConstIterator\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\nValueConstIterator::ValueConstIterator() = default;\n\nValueConstIterator::ValueConstIterator(\n    const Value::ObjectValues::iterator& current)\n    : ValueIteratorBase(current) {}\n\nValueConstIterator::ValueConstIterator(ValueIterator const& other)\n    : ValueIteratorBase(other) {}\n\nValueConstIterator& ValueConstIterator::\noperator=(const ValueIteratorBase& other) {\n  copy(other);\n  return *this;\n}\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// class ValueIterator\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\nValueIterator::ValueIterator() = default;\n\nValueIterator::ValueIterator(const Value::ObjectValues::iterator& current)\n    : ValueIteratorBase(current) {}\n\nValueIterator::ValueIterator(const ValueConstIterator& other)\n    : ValueIteratorBase(other) {\n  throwRuntimeError(\"ConstIterator to Iterator should never be allowed.\");\n}\n\nValueIterator::ValueIterator(const ValueIterator& other) = default;\n\nValueIterator& ValueIterator::operator=(const SelfType& other) {\n  copy(other);\n  return *this;\n}\n\n} // namespace Json\n"
  },
  {
    "path": "src/lib_json/json_writer.cpp",
    "content": "// Copyright 2011 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#if !defined(JSON_IS_AMALGAMATION)\n#include \"json_tool.h\"\n#include <json/writer.h>\n#endif // if !defined(JSON_IS_AMALGAMATION)\n#include <algorithm>\n#include <cassert>\n#include <cctype>\n#include <cmath>\n#include <cstdio>\n#include <cstring>\n#include <iomanip>\n#include <memory>\n#include <set>\n#include <sstream>\n#include <utility>\n\n#if defined(_MSC_VER)\n// Disable warning about strdup being deprecated.\n#pragma warning(disable : 4996)\n#endif\n\nnamespace Json {\n\nusing StreamWriterPtr = std::unique_ptr<StreamWriter>;\n\nString valueToString(LargestInt value) {\n  UIntToStringBuffer buffer;\n  char* current = buffer + sizeof(buffer);\n  if (value == Value::minLargestInt) {\n    uintToString(LargestUInt(Value::maxLargestInt) + 1, current);\n    *--current = '-';\n  } else if (value < 0) {\n    uintToString(LargestUInt(-value), current);\n    *--current = '-';\n  } else {\n    uintToString(LargestUInt(value), current);\n  }\n  assert(current >= buffer);\n  return current;\n}\n\nString valueToString(LargestUInt value) {\n  UIntToStringBuffer buffer;\n  char* current = buffer + sizeof(buffer);\n  uintToString(value, current);\n  assert(current >= buffer);\n  return current;\n}\n\n#if defined(JSON_HAS_INT64)\n\nString valueToString(Int value) { return valueToString(LargestInt(value)); }\n\nString valueToString(UInt value) { return valueToString(LargestUInt(value)); }\n\n#endif // # if defined(JSON_HAS_INT64)\n\nnamespace {\nString valueToString(double value, bool useSpecialFloats,\n                     unsigned int precision, PrecisionType precisionType) {\n  // Print into the buffer. We need not request the alternative representation\n  // that always has a decimal point because JSON doesn't distinguish the\n  // concepts of reals and integers.\n  if (!std::isfinite(value)) {\n    if (std::isnan(value))\n      return useSpecialFloats ? \"NaN\" : \"null\";\n    if (value < 0)\n      return useSpecialFloats ? \"-Infinity\" : \"-1e+9999\";\n    return useSpecialFloats ? \"Infinity\" : \"1e+9999\";\n  }\n\n  String buffer(size_t(36), '\\0');\n  while (true) {\n    int len = jsoncpp_snprintf(\n        &*buffer.begin(), buffer.size(),\n        (precisionType == PrecisionType::significantDigits) ? \"%.*g\" : \"%.*f\",\n        precision, value);\n    assert(len >= 0);\n    auto wouldPrint = static_cast<size_t>(len);\n    if (wouldPrint >= buffer.size()) {\n      buffer.resize(wouldPrint + 1);\n      continue;\n    }\n    buffer.resize(wouldPrint);\n    break;\n  }\n\n  buffer.erase(fixNumericLocale(buffer.begin(), buffer.end()), buffer.end());\n\n  // try to ensure we preserve the fact that this was given to us as a double on\n  // input\n  if (buffer.find('.') == buffer.npos && buffer.find('e') == buffer.npos) {\n    buffer += \".0\";\n  }\n\n  // strip the zero padding from the right\n  if (precisionType == PrecisionType::decimalPlaces) {\n    buffer.erase(fixZerosInTheEnd(buffer.begin(), buffer.end(), precision),\n                 buffer.end());\n  }\n\n  return buffer;\n}\n} // namespace\n\nString valueToString(double value, unsigned int precision,\n                     PrecisionType precisionType) {\n  return valueToString(value, false, precision, precisionType);\n}\n\nString valueToString(bool value) { return value ? \"true\" : \"false\"; }\n\nstatic bool doesAnyCharRequireEscaping(char const* s, size_t n) {\n  assert(s || !n);\n\n  return std::any_of(s, s + n, [](unsigned char c) {\n    return c == '\\\\' || c == '\"' || c < 0x20 || c > 0x7F;\n  });\n}\n\nstatic unsigned int utf8ToCodepoint(const char*& s, const char* e) {\n  const unsigned int REPLACEMENT_CHARACTER = 0xFFFD;\n\n  unsigned int firstByte = static_cast<unsigned char>(*s);\n\n  if (firstByte < 0x80)\n    return firstByte;\n\n  if (firstByte < 0xE0) {\n    if (e - s < 2)\n      return REPLACEMENT_CHARACTER;\n\n    unsigned int calculated =\n        ((firstByte & 0x1F) << 6) | (static_cast<unsigned int>(s[1]) & 0x3F);\n    s += 1;\n    // oversized encoded characters are invalid\n    return calculated < 0x80 ? REPLACEMENT_CHARACTER : calculated;\n  }\n\n  if (firstByte < 0xF0) {\n    if (e - s < 3)\n      return REPLACEMENT_CHARACTER;\n\n    unsigned int calculated = ((firstByte & 0x0F) << 12) |\n                              ((static_cast<unsigned int>(s[1]) & 0x3F) << 6) |\n                              (static_cast<unsigned int>(s[2]) & 0x3F);\n    s += 2;\n    // surrogates aren't valid codepoints itself\n    // shouldn't be UTF-8 encoded\n    if (calculated >= 0xD800 && calculated <= 0xDFFF)\n      return REPLACEMENT_CHARACTER;\n    // oversized encoded characters are invalid\n    return calculated < 0x800 ? REPLACEMENT_CHARACTER : calculated;\n  }\n\n  if (firstByte < 0xF8) {\n    if (e - s < 4)\n      return REPLACEMENT_CHARACTER;\n\n    unsigned int calculated = ((firstByte & 0x07) << 18) |\n                              ((static_cast<unsigned int>(s[1]) & 0x3F) << 12) |\n                              ((static_cast<unsigned int>(s[2]) & 0x3F) << 6) |\n                              (static_cast<unsigned int>(s[3]) & 0x3F);\n    s += 3;\n    // oversized encoded characters are invalid\n    return calculated < 0x10000 ? REPLACEMENT_CHARACTER : calculated;\n  }\n\n  return REPLACEMENT_CHARACTER;\n}\n\nstatic const char hex2[] = \"000102030405060708090a0b0c0d0e0f\"\n                           \"101112131415161718191a1b1c1d1e1f\"\n                           \"202122232425262728292a2b2c2d2e2f\"\n                           \"303132333435363738393a3b3c3d3e3f\"\n                           \"404142434445464748494a4b4c4d4e4f\"\n                           \"505152535455565758595a5b5c5d5e5f\"\n                           \"606162636465666768696a6b6c6d6e6f\"\n                           \"707172737475767778797a7b7c7d7e7f\"\n                           \"808182838485868788898a8b8c8d8e8f\"\n                           \"909192939495969798999a9b9c9d9e9f\"\n                           \"a0a1a2a3a4a5a6a7a8a9aaabacadaeaf\"\n                           \"b0b1b2b3b4b5b6b7b8b9babbbcbdbebf\"\n                           \"c0c1c2c3c4c5c6c7c8c9cacbcccdcecf\"\n                           \"d0d1d2d3d4d5d6d7d8d9dadbdcdddedf\"\n                           \"e0e1e2e3e4e5e6e7e8e9eaebecedeeef\"\n                           \"f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff\";\n\nstatic String toHex16Bit(unsigned int x) {\n  const unsigned int hi = (x >> 8) & 0xff;\n  const unsigned int lo = x & 0xff;\n  String result(4, ' ');\n  result[0] = hex2[2 * hi];\n  result[1] = hex2[2 * hi + 1];\n  result[2] = hex2[2 * lo];\n  result[3] = hex2[2 * lo + 1];\n  return result;\n}\n\nstatic void appendRaw(String& result, unsigned ch) {\n  result += static_cast<char>(ch);\n}\n\nstatic void appendHex(String& result, unsigned ch) {\n  result.append(\"\\\\u\").append(toHex16Bit(ch));\n}\n\nstatic String valueToQuotedStringN(const char* value, size_t length,\n                                   bool emitUTF8 = false) {\n  if (value == nullptr)\n    return \"\";\n\n  if (!doesAnyCharRequireEscaping(value, length))\n    return String(\"\\\"\") + value + \"\\\"\";\n  // We have to walk value and escape any special characters.\n  // Appending to String is not efficient, but this should be rare.\n  // (Note: forward slashes are *not* rare, but I am not escaping them.)\n  String::size_type maxsize = length * 2 + 3; // allescaped+quotes+NULL\n  String result;\n  result.reserve(maxsize); // to avoid lots of mallocs\n  result += \"\\\"\";\n  char const* end = value + length;\n  for (const char* c = value; c != end; ++c) {\n    switch (*c) {\n    case '\\\"':\n      result += \"\\\\\\\"\";\n      break;\n    case '\\\\':\n      result += \"\\\\\\\\\";\n      break;\n    case '\\b':\n      result += \"\\\\b\";\n      break;\n    case '\\f':\n      result += \"\\\\f\";\n      break;\n    case '\\n':\n      result += \"\\\\n\";\n      break;\n    case '\\r':\n      result += \"\\\\r\";\n      break;\n    case '\\t':\n      result += \"\\\\t\";\n      break;\n    // case '/':\n    // Even though \\/ is considered a legal escape in JSON, a bare\n    // slash is also legal, so I see no reason to escape it.\n    // (I hope I am not misunderstanding something.)\n    // blep notes: actually escaping \\/ may be useful in javascript to avoid </\n    // sequence.\n    // Should add a flag to allow this compatibility mode and prevent this\n    // sequence from occurring.\n    default: {\n      if (emitUTF8) {\n        unsigned codepoint = static_cast<unsigned char>(*c);\n        if (codepoint < 0x20) {\n          appendHex(result, codepoint);\n        } else {\n          appendRaw(result, codepoint);\n        }\n      } else {\n        unsigned codepoint = utf8ToCodepoint(c, end); // modifies `c`\n        if (codepoint < 0x20) {\n          appendHex(result, codepoint);\n        } else if (codepoint < 0x80) {\n          appendRaw(result, codepoint);\n        } else if (codepoint < 0x10000) {\n          // Basic Multilingual Plane\n          appendHex(result, codepoint);\n        } else {\n          // Extended Unicode. Encode 20 bits as a surrogate pair.\n          codepoint -= 0x10000;\n          appendHex(result, 0xd800 + ((codepoint >> 10) & 0x3ff));\n          appendHex(result, 0xdc00 + (codepoint & 0x3ff));\n        }\n      }\n    } break;\n    }\n  }\n  result += \"\\\"\";\n  return result;\n}\n\nString valueToQuotedString(const char* value) {\n  return valueToQuotedStringN(value, strlen(value));\n}\n\nString valueToQuotedString(const char* value, size_t length) {\n  return valueToQuotedStringN(value, length);\n}\n\n// Class Writer\n// //////////////////////////////////////////////////////////////////\nWriter::~Writer() = default;\n\n// Class FastWriter\n// //////////////////////////////////////////////////////////////////\n\nFastWriter::FastWriter()\n\n    = default;\n\nvoid FastWriter::enableYAMLCompatibility() { yamlCompatibilityEnabled_ = true; }\n\nvoid FastWriter::dropNullPlaceholders() { dropNullPlaceholders_ = true; }\n\nvoid FastWriter::omitEndingLineFeed() { omitEndingLineFeed_ = true; }\n\nString FastWriter::write(const Value& root) {\n  document_.clear();\n  writeValue(root);\n  if (!omitEndingLineFeed_)\n    document_ += '\\n';\n  return document_;\n}\n\nvoid FastWriter::writeValue(const Value& value) {\n  switch (value.type()) {\n  case nullValue:\n    if (!dropNullPlaceholders_)\n      document_ += \"null\";\n    break;\n  case intValue:\n    document_ += valueToString(value.asLargestInt());\n    break;\n  case uintValue:\n    document_ += valueToString(value.asLargestUInt());\n    break;\n  case realValue:\n    document_ += valueToString(value.asDouble());\n    break;\n  case stringValue: {\n    // Is NULL possible for value.string_? No.\n    char const* str;\n    char const* end;\n    bool ok = value.getString(&str, &end);\n    if (ok)\n      document_ += valueToQuotedStringN(str, static_cast<size_t>(end - str));\n    break;\n  }\n  case booleanValue:\n    document_ += valueToString(value.asBool());\n    break;\n  case arrayValue: {\n    document_ += '[';\n    ArrayIndex size = value.size();\n    for (ArrayIndex index = 0; index < size; ++index) {\n      if (index > 0)\n        document_ += ',';\n      writeValue(value[index]);\n    }\n    document_ += ']';\n  } break;\n  case objectValue: {\n    Value::Members members(value.getMemberNames());\n    document_ += '{';\n    for (auto it = members.begin(); it != members.end(); ++it) {\n      const String& name = *it;\n      if (it != members.begin())\n        document_ += ',';\n      document_ += valueToQuotedStringN(name.data(), name.length());\n      document_ += yamlCompatibilityEnabled_ ? \": \" : \":\";\n      writeValue(value[name]);\n    }\n    document_ += '}';\n  } break;\n  }\n}\n\n// Class StyledWriter\n// //////////////////////////////////////////////////////////////////\n\nStyledWriter::StyledWriter() = default;\n\nString StyledWriter::write(const Value& root) {\n  document_.clear();\n  addChildValues_ = false;\n  indentString_.clear();\n  writeCommentBeforeValue(root);\n  writeValue(root);\n  writeCommentAfterValueOnSameLine(root);\n  document_ += '\\n';\n  return document_;\n}\n\nvoid StyledWriter::writeValue(const Value& value) {\n  switch (value.type()) {\n  case nullValue:\n    pushValue(\"null\");\n    break;\n  case intValue:\n    pushValue(valueToString(value.asLargestInt()));\n    break;\n  case uintValue:\n    pushValue(valueToString(value.asLargestUInt()));\n    break;\n  case realValue:\n    pushValue(valueToString(value.asDouble()));\n    break;\n  case stringValue: {\n    // Is NULL possible for value.string_? No.\n    char const* str;\n    char const* end;\n    bool ok = value.getString(&str, &end);\n    if (ok)\n      pushValue(valueToQuotedStringN(str, static_cast<size_t>(end - str)));\n    else\n      pushValue(\"\");\n    break;\n  }\n  case booleanValue:\n    pushValue(valueToString(value.asBool()));\n    break;\n  case arrayValue:\n    writeArrayValue(value);\n    break;\n  case objectValue: {\n    Value::Members members(value.getMemberNames());\n    if (members.empty())\n      pushValue(\"{}\");\n    else {\n      writeWithIndent(\"{\");\n      indent();\n      auto it = members.begin();\n      for (;;) {\n        const String& name = *it;\n        const Value& childValue = value[name];\n        writeCommentBeforeValue(childValue);\n        writeWithIndent(valueToQuotedString(name.c_str(), name.size()));\n        document_ += \" : \";\n        writeValue(childValue);\n        if (++it == members.end()) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        document_ += ',';\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"}\");\n    }\n  } break;\n  }\n}\n\nvoid StyledWriter::writeArrayValue(const Value& value) {\n  size_t size = value.size();\n  if (size == 0)\n    pushValue(\"[]\");\n  else {\n    bool isArrayMultiLine = isMultilineArray(value);\n    if (isArrayMultiLine) {\n      writeWithIndent(\"[\");\n      indent();\n      bool hasChildValue = !childValues_.empty();\n      ArrayIndex index = 0;\n      for (;;) {\n        const Value& childValue = value[index];\n        writeCommentBeforeValue(childValue);\n        if (hasChildValue)\n          writeWithIndent(childValues_[index]);\n        else {\n          writeIndent();\n          writeValue(childValue);\n        }\n        if (++index == size) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        document_ += ',';\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"]\");\n    } else // output on a single line\n    {\n      assert(childValues_.size() == size);\n      document_ += \"[ \";\n      for (size_t index = 0; index < size; ++index) {\n        if (index > 0)\n          document_ += \", \";\n        document_ += childValues_[index];\n      }\n      document_ += \" ]\";\n    }\n  }\n}\n\nbool StyledWriter::isMultilineArray(const Value& value) {\n  ArrayIndex const size = value.size();\n  bool isMultiLine = size * 3 >= rightMargin_;\n  childValues_.clear();\n  for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {\n    const Value& childValue = value[index];\n    isMultiLine = ((childValue.isArray() || childValue.isObject()) &&\n                   !childValue.empty());\n  }\n  if (!isMultiLine) // check if line length > max line length\n  {\n    childValues_.reserve(size);\n    addChildValues_ = true;\n    ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]'\n    for (ArrayIndex index = 0; index < size; ++index) {\n      if (hasCommentForValue(value[index])) {\n        isMultiLine = true;\n      }\n      writeValue(value[index]);\n      lineLength += static_cast<ArrayIndex>(childValues_[index].length());\n    }\n    addChildValues_ = false;\n    isMultiLine = isMultiLine || lineLength >= rightMargin_;\n  }\n  return isMultiLine;\n}\n\nvoid StyledWriter::pushValue(const String& value) {\n  if (addChildValues_)\n    childValues_.push_back(value);\n  else\n    document_ += value;\n}\n\nvoid StyledWriter::writeIndent() {\n  if (!document_.empty()) {\n    char last = document_[document_.length() - 1];\n    if (last == ' ') // already indented\n      return;\n    if (last != '\\n') // Comments may add new-line\n      document_ += '\\n';\n  }\n  document_ += indentString_;\n}\n\nvoid StyledWriter::writeWithIndent(const String& value) {\n  writeIndent();\n  document_ += value;\n}\n\nvoid StyledWriter::indent() { indentString_ += String(indentSize_, ' '); }\n\nvoid StyledWriter::unindent() {\n  assert(indentString_.size() >= indentSize_);\n  indentString_.resize(indentString_.size() - indentSize_);\n}\n\nvoid StyledWriter::writeCommentBeforeValue(const Value& root) {\n  if (!root.hasComment(commentBefore))\n    return;\n\n  document_ += '\\n';\n  writeIndent();\n  const String& comment = root.getComment(commentBefore);\n  String::const_iterator iter = comment.begin();\n  while (iter != comment.end()) {\n    document_ += *iter;\n    if (*iter == '\\n' && ((iter + 1) != comment.end() && *(iter + 1) == '/'))\n      writeIndent();\n    ++iter;\n  }\n\n  // Comments are stripped of trailing newlines, so add one here\n  document_ += '\\n';\n}\n\nvoid StyledWriter::writeCommentAfterValueOnSameLine(const Value& root) {\n  if (root.hasComment(commentAfterOnSameLine))\n    document_ += \" \" + root.getComment(commentAfterOnSameLine);\n\n  if (root.hasComment(commentAfter)) {\n    document_ += '\\n';\n    document_ += root.getComment(commentAfter);\n    document_ += '\\n';\n  }\n}\n\nbool StyledWriter::hasCommentForValue(const Value& value) {\n  return value.hasComment(commentBefore) ||\n         value.hasComment(commentAfterOnSameLine) ||\n         value.hasComment(commentAfter);\n}\n\n// Class StyledStreamWriter\n// //////////////////////////////////////////////////////////////////\n\nStyledStreamWriter::StyledStreamWriter(String indentation)\n    : document_(nullptr), indentation_(std::move(indentation)),\n      addChildValues_(), indented_(false) {}\n\nvoid StyledStreamWriter::write(OStream& out, const Value& root) {\n  document_ = &out;\n  addChildValues_ = false;\n  indentString_.clear();\n  indented_ = true;\n  writeCommentBeforeValue(root);\n  if (!indented_)\n    writeIndent();\n  indented_ = true;\n  writeValue(root);\n  writeCommentAfterValueOnSameLine(root);\n  *document_ << \"\\n\";\n  document_ = nullptr; // Forget the stream, for safety.\n}\n\nvoid StyledStreamWriter::writeValue(const Value& value) {\n  switch (value.type()) {\n  case nullValue:\n    pushValue(\"null\");\n    break;\n  case intValue:\n    pushValue(valueToString(value.asLargestInt()));\n    break;\n  case uintValue:\n    pushValue(valueToString(value.asLargestUInt()));\n    break;\n  case realValue:\n    pushValue(valueToString(value.asDouble()));\n    break;\n  case stringValue: {\n    // Is NULL possible for value.string_? No.\n    char const* str;\n    char const* end;\n    bool ok = value.getString(&str, &end);\n    if (ok)\n      pushValue(valueToQuotedStringN(str, static_cast<size_t>(end - str)));\n    else\n      pushValue(\"\");\n    break;\n  }\n  case booleanValue:\n    pushValue(valueToString(value.asBool()));\n    break;\n  case arrayValue:\n    writeArrayValue(value);\n    break;\n  case objectValue: {\n    Value::Members members(value.getMemberNames());\n    if (members.empty())\n      pushValue(\"{}\");\n    else {\n      writeWithIndent(\"{\");\n      indent();\n      auto it = members.begin();\n      for (;;) {\n        const String& name = *it;\n        const Value& childValue = value[name];\n        writeCommentBeforeValue(childValue);\n        writeWithIndent(valueToQuotedString(name.c_str(), name.size()));\n        *document_ << \" : \";\n        writeValue(childValue);\n        if (++it == members.end()) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        *document_ << \",\";\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"}\");\n    }\n  } break;\n  }\n}\n\nvoid StyledStreamWriter::writeArrayValue(const Value& value) {\n  unsigned size = value.size();\n  if (size == 0)\n    pushValue(\"[]\");\n  else {\n    bool isArrayMultiLine = isMultilineArray(value);\n    if (isArrayMultiLine) {\n      writeWithIndent(\"[\");\n      indent();\n      bool hasChildValue = !childValues_.empty();\n      unsigned index = 0;\n      for (;;) {\n        const Value& childValue = value[index];\n        writeCommentBeforeValue(childValue);\n        if (hasChildValue)\n          writeWithIndent(childValues_[index]);\n        else {\n          if (!indented_)\n            writeIndent();\n          indented_ = true;\n          writeValue(childValue);\n          indented_ = false;\n        }\n        if (++index == size) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        *document_ << \",\";\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"]\");\n    } else // output on a single line\n    {\n      assert(childValues_.size() == size);\n      *document_ << \"[ \";\n      for (unsigned index = 0; index < size; ++index) {\n        if (index > 0)\n          *document_ << \", \";\n        *document_ << childValues_[index];\n      }\n      *document_ << \" ]\";\n    }\n  }\n}\n\nbool StyledStreamWriter::isMultilineArray(const Value& value) {\n  ArrayIndex const size = value.size();\n  bool isMultiLine = size * 3 >= rightMargin_;\n  childValues_.clear();\n  for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {\n    const Value& childValue = value[index];\n    isMultiLine = ((childValue.isArray() || childValue.isObject()) &&\n                   !childValue.empty());\n  }\n  if (!isMultiLine) // check if line length > max line length\n  {\n    childValues_.reserve(size);\n    addChildValues_ = true;\n    ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]'\n    for (ArrayIndex index = 0; index < size; ++index) {\n      if (hasCommentForValue(value[index])) {\n        isMultiLine = true;\n      }\n      writeValue(value[index]);\n      lineLength += static_cast<ArrayIndex>(childValues_[index].length());\n    }\n    addChildValues_ = false;\n    isMultiLine = isMultiLine || lineLength >= rightMargin_;\n  }\n  return isMultiLine;\n}\n\nvoid StyledStreamWriter::pushValue(const String& value) {\n  if (addChildValues_)\n    childValues_.push_back(value);\n  else\n    *document_ << value;\n}\n\nvoid StyledStreamWriter::writeIndent() {\n  // blep intended this to look at the so-far-written string\n  // to determine whether we are already indented, but\n  // with a stream we cannot do that. So we rely on some saved state.\n  // The caller checks indented_.\n  *document_ << '\\n' << indentString_;\n}\n\nvoid StyledStreamWriter::writeWithIndent(const String& value) {\n  if (!indented_)\n    writeIndent();\n  *document_ << value;\n  indented_ = false;\n}\n\nvoid StyledStreamWriter::indent() { indentString_ += indentation_; }\n\nvoid StyledStreamWriter::unindent() {\n  assert(indentString_.size() >= indentation_.size());\n  indentString_.resize(indentString_.size() - indentation_.size());\n}\n\nvoid StyledStreamWriter::writeCommentBeforeValue(const Value& root) {\n  if (!root.hasComment(commentBefore))\n    return;\n\n  if (!indented_)\n    writeIndent();\n  const String& comment = root.getComment(commentBefore);\n  String::const_iterator iter = comment.begin();\n  while (iter != comment.end()) {\n    *document_ << *iter;\n    if (*iter == '\\n' && ((iter + 1) != comment.end() && *(iter + 1) == '/'))\n      // writeIndent();  // would include newline\n      *document_ << indentString_;\n    ++iter;\n  }\n  indented_ = false;\n}\n\nvoid StyledStreamWriter::writeCommentAfterValueOnSameLine(const Value& root) {\n  if (root.hasComment(commentAfterOnSameLine))\n    *document_ << ' ' << root.getComment(commentAfterOnSameLine);\n\n  if (root.hasComment(commentAfter)) {\n    writeIndent();\n    *document_ << root.getComment(commentAfter);\n  }\n  indented_ = false;\n}\n\nbool StyledStreamWriter::hasCommentForValue(const Value& value) {\n  return value.hasComment(commentBefore) ||\n         value.hasComment(commentAfterOnSameLine) ||\n         value.hasComment(commentAfter);\n}\n\n//////////////////////////\n// BuiltStyledStreamWriter\n\n/// Scoped enums are not available until C++11.\nstruct CommentStyle {\n  /// Decide whether to write comments.\n  enum Enum {\n    None, ///< Drop all comments.\n    Most, ///< Recover odd behavior of previous versions (not implemented yet).\n    All   ///< Keep all comments.\n  };\n};\n\nstruct BuiltStyledStreamWriter : public StreamWriter {\n  BuiltStyledStreamWriter(String indentation, CommentStyle::Enum cs,\n                          String colonSymbol, String nullSymbol,\n                          String endingLineFeedSymbol, bool useSpecialFloats,\n                          bool emitUTF8, unsigned int precision,\n                          PrecisionType precisionType);\n  int write(Value const& root, OStream* sout) override;\n\nprivate:\n  void writeValue(Value const& value);\n  void writeArrayValue(Value const& value);\n  bool isMultilineArray(Value const& value);\n  void pushValue(String const& value);\n  void writeIndent();\n  void writeWithIndent(String const& value);\n  void indent();\n  void unindent();\n  void writeCommentBeforeValue(Value const& root);\n  void writeCommentAfterValueOnSameLine(Value const& root);\n  static bool hasCommentForValue(const Value& value);\n\n  using ChildValues = std::vector<String>;\n\n  ChildValues childValues_;\n  String indentString_;\n  unsigned int rightMargin_;\n  String indentation_;\n  CommentStyle::Enum cs_;\n  String colonSymbol_;\n  String nullSymbol_;\n  String endingLineFeedSymbol_;\n  bool addChildValues_ : 1;\n  bool indented_ : 1;\n  bool useSpecialFloats_ : 1;\n  bool emitUTF8_ : 1;\n  unsigned int precision_;\n  PrecisionType precisionType_;\n};\nBuiltStyledStreamWriter::BuiltStyledStreamWriter(\n    String indentation, CommentStyle::Enum cs, String colonSymbol,\n    String nullSymbol, String endingLineFeedSymbol, bool useSpecialFloats,\n    bool emitUTF8, unsigned int precision, PrecisionType precisionType)\n    : rightMargin_(74), indentation_(std::move(indentation)), cs_(cs),\n      colonSymbol_(std::move(colonSymbol)), nullSymbol_(std::move(nullSymbol)),\n      endingLineFeedSymbol_(std::move(endingLineFeedSymbol)),\n      addChildValues_(false), indented_(false),\n      useSpecialFloats_(useSpecialFloats), emitUTF8_(emitUTF8),\n      precision_(precision), precisionType_(precisionType) {}\nint BuiltStyledStreamWriter::write(Value const& root, OStream* sout) {\n  sout_ = sout;\n  addChildValues_ = false;\n  indented_ = true;\n  indentString_.clear();\n  writeCommentBeforeValue(root);\n  if (!indented_)\n    writeIndent();\n  indented_ = true;\n  writeValue(root);\n  writeCommentAfterValueOnSameLine(root);\n  *sout_ << endingLineFeedSymbol_;\n  sout_ = nullptr;\n  return 0;\n}\nvoid BuiltStyledStreamWriter::writeValue(Value const& value) {\n  switch (value.type()) {\n  case nullValue:\n    pushValue(nullSymbol_);\n    break;\n  case intValue:\n    pushValue(valueToString(value.asLargestInt()));\n    break;\n  case uintValue:\n    pushValue(valueToString(value.asLargestUInt()));\n    break;\n  case realValue:\n    pushValue(valueToString(value.asDouble(), useSpecialFloats_, precision_,\n                            precisionType_));\n    break;\n  case stringValue: {\n    // Is NULL is possible for value.string_? No.\n    char const* str;\n    char const* end;\n    bool ok = value.getString(&str, &end);\n    if (ok)\n      pushValue(\n          valueToQuotedStringN(str, static_cast<size_t>(end - str), emitUTF8_));\n    else\n      pushValue(\"\");\n    break;\n  }\n  case booleanValue:\n    pushValue(valueToString(value.asBool()));\n    break;\n  case arrayValue:\n    writeArrayValue(value);\n    break;\n  case objectValue: {\n    Value::Members members(value.getMemberNames());\n    if (members.empty())\n      pushValue(\"{}\");\n    else {\n      writeWithIndent(\"{\");\n      indent();\n      auto it = members.begin();\n      for (;;) {\n        String const& name = *it;\n        Value const& childValue = value[name];\n        writeCommentBeforeValue(childValue);\n        writeWithIndent(\n            valueToQuotedStringN(name.data(), name.length(), emitUTF8_));\n        *sout_ << colonSymbol_;\n        writeValue(childValue);\n        if (++it == members.end()) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        *sout_ << \",\";\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"}\");\n    }\n  } break;\n  }\n}\n\nvoid BuiltStyledStreamWriter::writeArrayValue(Value const& value) {\n  unsigned size = value.size();\n  if (size == 0)\n    pushValue(\"[]\");\n  else {\n    bool isMultiLine = (cs_ == CommentStyle::All) || isMultilineArray(value);\n    if (isMultiLine) {\n      writeWithIndent(\"[\");\n      indent();\n      bool hasChildValue = !childValues_.empty();\n      unsigned index = 0;\n      for (;;) {\n        Value const& childValue = value[index];\n        writeCommentBeforeValue(childValue);\n        if (hasChildValue)\n          writeWithIndent(childValues_[index]);\n        else {\n          if (!indented_)\n            writeIndent();\n          indented_ = true;\n          writeValue(childValue);\n          indented_ = false;\n        }\n        if (++index == size) {\n          writeCommentAfterValueOnSameLine(childValue);\n          break;\n        }\n        *sout_ << \",\";\n        writeCommentAfterValueOnSameLine(childValue);\n      }\n      unindent();\n      writeWithIndent(\"]\");\n    } else // output on a single line\n    {\n      assert(childValues_.size() == size);\n      *sout_ << \"[\";\n      if (!indentation_.empty())\n        *sout_ << \" \";\n      for (unsigned index = 0; index < size; ++index) {\n        if (index > 0)\n          *sout_ << ((!indentation_.empty()) ? \", \" : \",\");\n        *sout_ << childValues_[index];\n      }\n      if (!indentation_.empty())\n        *sout_ << \" \";\n      *sout_ << \"]\";\n    }\n  }\n}\n\nbool BuiltStyledStreamWriter::isMultilineArray(Value const& value) {\n  ArrayIndex const size = value.size();\n  bool isMultiLine = size * 3 >= rightMargin_;\n  childValues_.clear();\n  for (ArrayIndex index = 0; index < size && !isMultiLine; ++index) {\n    Value const& childValue = value[index];\n    isMultiLine = ((childValue.isArray() || childValue.isObject()) &&\n                   !childValue.empty());\n  }\n  if (!isMultiLine) // check if line length > max line length\n  {\n    childValues_.reserve(size);\n    addChildValues_ = true;\n    ArrayIndex lineLength = 4 + (size - 1) * 2; // '[ ' + ', '*n + ' ]'\n    for (ArrayIndex index = 0; index < size; ++index) {\n      if (hasCommentForValue(value[index])) {\n        isMultiLine = true;\n      }\n      writeValue(value[index]);\n      lineLength += static_cast<ArrayIndex>(childValues_[index].length());\n    }\n    addChildValues_ = false;\n    isMultiLine = isMultiLine || lineLength >= rightMargin_;\n  }\n  return isMultiLine;\n}\n\nvoid BuiltStyledStreamWriter::pushValue(String const& value) {\n  if (addChildValues_)\n    childValues_.push_back(value);\n  else\n    *sout_ << value;\n}\n\nvoid BuiltStyledStreamWriter::writeIndent() {\n  // blep intended this to look at the so-far-written string\n  // to determine whether we are already indented, but\n  // with a stream we cannot do that. So we rely on some saved state.\n  // The caller checks indented_.\n\n  if (!indentation_.empty()) {\n    // In this case, drop newlines too.\n    *sout_ << '\\n' << indentString_;\n  }\n}\n\nvoid BuiltStyledStreamWriter::writeWithIndent(String const& value) {\n  if (!indented_)\n    writeIndent();\n  *sout_ << value;\n  indented_ = false;\n}\n\nvoid BuiltStyledStreamWriter::indent() { indentString_ += indentation_; }\n\nvoid BuiltStyledStreamWriter::unindent() {\n  assert(indentString_.size() >= indentation_.size());\n  indentString_.resize(indentString_.size() - indentation_.size());\n}\n\nvoid BuiltStyledStreamWriter::writeCommentBeforeValue(Value const& root) {\n  if (cs_ == CommentStyle::None)\n    return;\n  if (!root.hasComment(commentBefore))\n    return;\n\n  if (!indented_)\n    writeIndent();\n  const String& comment = root.getComment(commentBefore);\n  String::const_iterator iter = comment.begin();\n  while (iter != comment.end()) {\n    *sout_ << *iter;\n    if (*iter == '\\n' && ((iter + 1) != comment.end() && *(iter + 1) == '/'))\n      // writeIndent();  // would write extra newline\n      *sout_ << indentString_;\n    ++iter;\n  }\n  indented_ = false;\n}\n\nvoid BuiltStyledStreamWriter::writeCommentAfterValueOnSameLine(\n    Value const& root) {\n  if (cs_ == CommentStyle::None)\n    return;\n  if (root.hasComment(commentAfterOnSameLine))\n    *sout_ << \" \" + root.getComment(commentAfterOnSameLine);\n\n  if (root.hasComment(commentAfter)) {\n    writeIndent();\n    *sout_ << root.getComment(commentAfter);\n  }\n}\n\n// static\nbool BuiltStyledStreamWriter::hasCommentForValue(const Value& value) {\n  return value.hasComment(commentBefore) ||\n         value.hasComment(commentAfterOnSameLine) ||\n         value.hasComment(commentAfter);\n}\n\n///////////////\n// StreamWriter\n\nStreamWriter::StreamWriter() : sout_(nullptr) {}\nStreamWriter::~StreamWriter() = default;\nStreamWriter::Factory::~Factory() = default;\nStreamWriterBuilder::StreamWriterBuilder() { setDefaults(&settings_); }\nStreamWriterBuilder::~StreamWriterBuilder() = default;\nStreamWriter* StreamWriterBuilder::newStreamWriter() const {\n  const String indentation = settings_[\"indentation\"].asString();\n  const String cs_str = settings_[\"commentStyle\"].asString();\n  const String pt_str = settings_[\"precisionType\"].asString();\n  const bool eyc = settings_[\"enableYAMLCompatibility\"].asBool();\n  const bool dnp = settings_[\"dropNullPlaceholders\"].asBool();\n  const bool usf = settings_[\"useSpecialFloats\"].asBool();\n  const bool emitUTF8 = settings_[\"emitUTF8\"].asBool();\n  unsigned int pre = settings_[\"precision\"].asUInt();\n  CommentStyle::Enum cs = CommentStyle::All;\n  if (cs_str == \"All\") {\n    cs = CommentStyle::All;\n  } else if (cs_str == \"None\") {\n    cs = CommentStyle::None;\n  } else {\n    throwRuntimeError(\"commentStyle must be 'All' or 'None'\");\n  }\n  PrecisionType precisionType(significantDigits);\n  if (pt_str == \"significant\") {\n    precisionType = PrecisionType::significantDigits;\n  } else if (pt_str == \"decimal\") {\n    precisionType = PrecisionType::decimalPlaces;\n  } else {\n    throwRuntimeError(\"precisionType must be 'significant' or 'decimal'\");\n  }\n  String colonSymbol = \" : \";\n  if (eyc) {\n    colonSymbol = \": \";\n  } else if (indentation.empty()) {\n    colonSymbol = \":\";\n  }\n  String nullSymbol = \"null\";\n  if (dnp) {\n    nullSymbol.clear();\n  }\n  if (pre > 17)\n    pre = 17;\n  String endingLineFeedSymbol;\n  return new BuiltStyledStreamWriter(indentation, cs, colonSymbol, nullSymbol,\n                                     endingLineFeedSymbol, usf, emitUTF8, pre,\n                                     precisionType);\n}\n\nbool StreamWriterBuilder::validate(Json::Value* invalid) const {\n  static const auto& valid_keys = *new std::set<String>{\n      \"indentation\",\n      \"commentStyle\",\n      \"enableYAMLCompatibility\",\n      \"dropNullPlaceholders\",\n      \"useSpecialFloats\",\n      \"emitUTF8\",\n      \"precision\",\n      \"precisionType\",\n  };\n  for (auto si = settings_.begin(); si != settings_.end(); ++si) {\n    auto key = si.name();\n    if (valid_keys.count(key))\n      continue;\n    if (invalid)\n      (*invalid)[key] = *si;\n    else\n      return false;\n  }\n  return invalid ? invalid->empty() : true;\n}\n\nValue& StreamWriterBuilder::operator[](const String& key) {\n  return settings_[key];\n}\n// static\nvoid StreamWriterBuilder::setDefaults(Json::Value* settings) {\n  //! [StreamWriterBuilderDefaults]\n  (*settings)[\"commentStyle\"] = \"All\";\n  (*settings)[\"indentation\"] = \"\\t\";\n  (*settings)[\"enableYAMLCompatibility\"] = false;\n  (*settings)[\"dropNullPlaceholders\"] = false;\n  (*settings)[\"useSpecialFloats\"] = false;\n  (*settings)[\"emitUTF8\"] = false;\n  (*settings)[\"precision\"] = 17;\n  (*settings)[\"precisionType\"] = \"significant\";\n  //! [StreamWriterBuilderDefaults]\n}\n\nString writeString(StreamWriter::Factory const& factory, Value const& root) {\n  OStringStream sout;\n  StreamWriterPtr const writer(factory.newStreamWriter());\n  writer->write(root, &sout);\n  return std::move(sout).str();\n}\n\nOStream& operator<<(OStream& sout, Value const& root) {\n  StreamWriterBuilder builder;\n  StreamWriterPtr const writer(builder.newStreamWriter());\n  writer->write(root, &sout);\n  return sout;\n}\n\n} // namespace Json\n"
  },
  {
    "path": "src/test_lib_json/BUILD.bazel",
    "content": "load(\"@rules_cc//cc:cc_test.bzl\", \"cc_test\")\n\ncc_test(\n    name = \"jsoncpp_test\",\n    srcs = [\n        \"fuzz.cpp\",\n        \"fuzz.h\",\n        \"jsontest.cpp\",\n        \"jsontest.h\",\n        \"main.cpp\",\n    ],\n    deps = [\"//:jsoncpp\"],\n)\n"
  },
  {
    "path": "src/test_lib_json/CMakeLists.txt",
    "content": "# vim: et ts=4 sts=4 sw=4 tw=0\n\nadd_executable(jsoncpp_test\n    jsontest.cpp\n    jsontest.h\n    fuzz.cpp\n    fuzz.h\n    main.cpp\n)\n\n\nif(BUILD_SHARED_LIBS)\n    if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12.0)\n        add_compile_definitions( JSON_DLL )\n    else()\n        add_definitions( -DJSON_DLL )\n    endif()\n    target_link_libraries(jsoncpp_test jsoncpp_lib)\nelse()\n    target_link_libraries(jsoncpp_test jsoncpp_static)\nendif()\n\n# another way to solve issue #90\n#set_target_properties(jsoncpp_test PROPERTIES COMPILE_FLAGS -ffloat-store)\n\n## Create tests for dashboard submission, allows easy review of CI results https://my.cdash.org/index.php?project=jsoncpp\nadd_test(NAME jsoncpp_test\n    COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:jsoncpp_test>\n)\nset_target_properties(jsoncpp_test PROPERTIES OUTPUT_NAME jsoncpp_test)\n\n# Run unit tests in post-build\n# (default cmake workflow hides away the test result into a file, resulting in poor dev workflow?!?)\nif(JSONCPP_WITH_POST_BUILD_UNITTEST)\n    add_custom_command(TARGET jsoncpp_test\n        POST_BUILD\n        COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:jsoncpp_test>\n    )\nendif()\n"
  },
  {
    "path": "src/test_lib_json/fuzz.cpp",
    "content": "// Copyright 2007-2019 The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#include \"fuzz.h\"\n\n#include <cstdint>\n#include <json/config.h>\n#include <json/json.h>\n#include <memory>\n#include <string>\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {\n  Json::CharReaderBuilder builder;\n\n  if (size < sizeof(uint32_t)) {\n    return 0;\n  }\n\n  const uint32_t hash_settings = static_cast<uint32_t>(data[0]) |\n                                 (static_cast<uint32_t>(data[1]) << 8) |\n                                 (static_cast<uint32_t>(data[2]) << 16) |\n                                 (static_cast<uint32_t>(data[3]) << 24);\n  data += sizeof(uint32_t);\n  size -= sizeof(uint32_t);\n\n  builder.settings_[\"failIfExtra\"] = hash_settings & (1 << 0);\n  builder.settings_[\"allowComments_\"] = hash_settings & (1 << 1);\n  builder.settings_[\"strictRoot_\"] = hash_settings & (1 << 2);\n  builder.settings_[\"allowDroppedNullPlaceholders_\"] = hash_settings & (1 << 3);\n  builder.settings_[\"allowNumericKeys_\"] = hash_settings & (1 << 4);\n  builder.settings_[\"allowSingleQuotes_\"] = hash_settings & (1 << 5);\n  builder.settings_[\"failIfExtra_\"] = hash_settings & (1 << 6);\n  builder.settings_[\"rejectDupKeys_\"] = hash_settings & (1 << 7);\n  builder.settings_[\"allowSpecialFloats_\"] = hash_settings & (1 << 8);\n  builder.settings_[\"collectComments\"] = hash_settings & (1 << 9);\n  builder.settings_[\"allowTrailingCommas_\"] = hash_settings & (1 << 10);\n\n  std::unique_ptr<Json::CharReader> reader(builder.newCharReader());\n\n  Json::Value root;\n  const auto data_str = reinterpret_cast<const char*>(data);\n#if JSON_USE_EXCEPTION\n  try {\n#endif // JSON_USE_EXCEPTION\n    reader->parse(data_str, data_str + size, &root, nullptr);\n#if JSON_USE_EXCEPTION\n  } catch (Json::Exception const&) {\n  }\n#endif // JSON_USE_EXCEPTION\n  // Whether it succeeded or not doesn't matter.\n  return 0;\n}\n"
  },
  {
    "path": "src/test_lib_json/fuzz.dict",
    "content": "#\n# AFL dictionary for JSON\n# -----------------------\n#\n# Just the very basics.\n#\n# Inspired by a dictionary by Jakub Wilk <jwilk@jwilk.net>\n#\n# https://github.com/rc0r/afl-fuzz/blob/master/dictionaries/json.dict\n#\n\n\"0\"\n\",0\"\n\":0\"\n\"0:\"\n\"-1.2e+3\"\n\n\"true\"\n\"false\"\n\"null\"\n\n\"\\\"\\\"\"\n\",\\\"\\\"\"\n\":\\\"\\\"\"\n\"\\\"\\\":\"\n\n\"{}\"\n\",{}\"\n\":{}\"\n\"{\\\"\\\":0}\"\n\"{{}}\"\n\n\"[]\"\n\",[]\"\n\":[]\"\n\"[0]\"\n\"[[]]\"\n\n\"''\"\n\"\\\\\"\n\"\\\\b\"\n\"\\\\f\"\n\"\\\\n\"\n\"\\\\r\"\n\"\\\\t\"\n\"\\\\u0000\"\n\"\\\\x00\"\n\"\\\\0\"\n\"\\\\uD800\\\\uDC00\"\n\"\\\\uDBFF\\\\uDFFF\"\n\n\"\\\"\\\":0\"\n\"//\"\n\"/**/\"\n"
  },
  {
    "path": "src/test_lib_json/fuzz.h",
    "content": "// Copyright 2007-2010 The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef FUZZ_H_INCLUDED\n#define FUZZ_H_INCLUDED\n\n#include <cstddef>\n#include <stdint.h>\n\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);\n\n#endif // ifndef FUZZ_H_INCLUDED\n"
  },
  {
    "path": "src/test_lib_json/jsontest.cpp",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#define _CRT_SECURE_NO_WARNINGS 1 // Prevents deprecation warning with MSVC\n#include \"jsontest.h\"\n#include <cstdio>\n#include <string>\n\n#if defined(_MSC_VER)\n// Used to install a report hook that prevent dialog on assertion and error.\n#include <crtdbg.h>\n#endif // if defined(_MSC_VER)\n\n#if defined(_WIN32)\n// Used to prevent dialog on memory fault.\n// Limits headers included by Windows.h\n#define WIN32_LEAN_AND_MEAN\n#define NOSERVICE\n#define NOMCX\n#define NOIME\n#define NOSOUND\n#define NOCOMM\n#define NORPC\n#define NOGDI\n#define NOUSER\n#define NODRIVERS\n#define NOLOGERROR\n#define NOPROFILER\n#define NOMEMMGR\n#define NOLFILEIO\n#define NOOPENFILE\n#define NORESOURCE\n#define NOATOM\n#define NOLANGUAGE\n#define NOLSTRING\n#define NODBCS\n#define NOKEYBOARDINFO\n#define NOGDICAPMASKS\n#define NOCOLOR\n#define NOGDIOBJ\n#define NODRAWTEXT\n#define NOTEXTMETRIC\n#define NOSCALABLEFONT\n#define NOBITMAP\n#define NORASTEROPS\n#define NOMETAFILE\n#define NOSYSMETRICS\n#define NOSYSTEMPARAMSINFO\n#define NOMSG\n#define NOWINSTYLES\n#define NOWINOFFSETS\n#define NOSHOWWINDOW\n#define NODEFERWINDOWPOS\n#define NOVIRTUALKEYCODES\n#define NOKEYSTATES\n#define NOWH\n#define NOMENUS\n#define NOSCROLL\n#define NOCLIPBOARD\n#define NOICONS\n#define NOMB\n#define NOSYSCOMMANDS\n#define NOMDI\n#define NOCTLMGR\n#define NOWINMESSAGES\n#include <windows.h>\n#endif // if defined(_WIN32)\n\nnamespace JsonTest {\n\n// class TestResult\n// //////////////////////////////////////////////////////////////////\n\nTestResult::TestResult() {\n  // The root predicate has id 0\n  rootPredicateNode_.id_ = 0;\n  rootPredicateNode_.next_ = nullptr;\n  predicateStackTail_ = &rootPredicateNode_;\n}\n\nvoid TestResult::setTestName(const Json::String& name) { name_ = name; }\n\nTestResult& TestResult::addFailure(const char* file, unsigned int line,\n                                   const char* expr) {\n  /// Walks the PredicateContext stack adding them to failures_ if not already\n  /// added.\n  unsigned int nestingLevel = 0;\n  PredicateContext* lastNode = rootPredicateNode_.next_;\n  for (; lastNode != nullptr; lastNode = lastNode->next_) {\n    if (lastNode->id_ > lastUsedPredicateId_) // new PredicateContext\n    {\n      lastUsedPredicateId_ = lastNode->id_;\n      addFailureInfo(lastNode->file_, lastNode->line_, lastNode->expr_,\n                     nestingLevel);\n      // Link the PredicateContext to the failure for message target when\n      // popping the PredicateContext.\n      lastNode->failure_ = &(failures_.back());\n    }\n    ++nestingLevel;\n  }\n\n  // Adds the failed assertion\n  addFailureInfo(file, line, expr, nestingLevel);\n  messageTarget_ = &(failures_.back());\n  return *this;\n}\n\nvoid TestResult::addFailureInfo(const char* file, unsigned int line,\n                                const char* expr, unsigned int nestingLevel) {\n  Failure failure;\n  failure.file_ = file;\n  failure.line_ = line;\n  if (expr) {\n    failure.expr_ = expr;\n  }\n  failure.nestingLevel_ = nestingLevel;\n  failures_.push_back(failure);\n}\n\nTestResult& TestResult::popPredicateContext() {\n  PredicateContext* lastNode = &rootPredicateNode_;\n  while (lastNode->next_ != nullptr && lastNode->next_->next_ != nullptr) {\n    lastNode = lastNode->next_;\n  }\n  // Set message target to popped failure\n  PredicateContext* tail = lastNode->next_;\n  if (tail != nullptr && tail->failure_ != nullptr) {\n    messageTarget_ = tail->failure_;\n  }\n  // Remove tail from list\n  predicateStackTail_ = lastNode;\n  lastNode->next_ = nullptr;\n  return *this;\n}\n\nbool TestResult::failed() const { return !failures_.empty(); }\n\nvoid TestResult::printFailure(bool printTestName) const {\n  if (failures_.empty()) {\n    return;\n  }\n\n  if (printTestName) {\n    printf(\"* Detail of %s test failure:\\n\", name_.c_str());\n  }\n\n  // Print in reverse to display the callstack in the right order\n  for (const auto& failure : failures_) {\n    Json::String indent(failure.nestingLevel_ * 2, ' ');\n    if (failure.file_) {\n      printf(\"%s%s(%u): \", indent.c_str(), failure.file_, failure.line_);\n    }\n    if (!failure.expr_.empty()) {\n      printf(\"%s\\n\", failure.expr_.c_str());\n    } else if (failure.file_) {\n      printf(\"\\n\");\n    }\n    if (!failure.message_.empty()) {\n      Json::String reindented = indentText(failure.message_, indent + \"  \");\n      printf(\"%s\\n\", reindented.c_str());\n    }\n  }\n}\n\nJson::String TestResult::indentText(const Json::String& text,\n                                    const Json::String& indent) {\n  Json::String reindented;\n  Json::String::size_type lastIndex = 0;\n  while (lastIndex < text.size()) {\n    Json::String::size_type nextIndex = text.find('\\n', lastIndex);\n    if (nextIndex == Json::String::npos) {\n      nextIndex = text.size() - 1;\n    }\n    reindented += indent;\n    reindented += text.substr(lastIndex, nextIndex - lastIndex + 1);\n    lastIndex = nextIndex + 1;\n  }\n  return reindented;\n}\n\nTestResult& TestResult::addToLastFailure(const Json::String& message) {\n  if (messageTarget_ != nullptr) {\n    messageTarget_->message_ += message;\n  }\n  return *this;\n}\n\nTestResult& TestResult::operator<<(Json::Int64 value) {\n  return addToLastFailure(Json::valueToString(value));\n}\n\nTestResult& TestResult::operator<<(Json::UInt64 value) {\n  return addToLastFailure(Json::valueToString(value));\n}\n\nTestResult& TestResult::operator<<(bool value) {\n  return addToLastFailure(value ? \"true\" : \"false\");\n}\n\n// class TestCase\n// //////////////////////////////////////////////////////////////////\n\nTestCase::TestCase() = default;\n\nTestCase::~TestCase() = default;\n\nvoid TestCase::run(TestResult& result) {\n  result_ = &result;\n  runTestCase();\n}\n\n// class Runner\n// //////////////////////////////////////////////////////////////////\n\nRunner::Runner() = default;\n\nRunner& Runner::add(TestCaseFactory factory) {\n  tests_.push_back(factory);\n  return *this;\n}\n\nsize_t Runner::testCount() const { return tests_.size(); }\n\nJson::String Runner::testNameAt(size_t index) const {\n  TestCase* test = tests_[index]();\n  Json::String name = test->testName();\n  delete test;\n  return name;\n}\n\nvoid Runner::runTestAt(size_t index, TestResult& result) const {\n  TestCase* test = tests_[index]();\n  result.setTestName(test->testName());\n  printf(\"Testing %s: \", test->testName());\n  fflush(stdout);\n#if JSON_USE_EXCEPTION\n  try {\n#endif // if JSON_USE_EXCEPTION\n    test->run(result);\n#if JSON_USE_EXCEPTION\n  } catch (const std::exception& e) {\n    result.addFailure(__FILE__, __LINE__, \"Unexpected exception caught:\")\n        << e.what();\n  }\n#endif // if JSON_USE_EXCEPTION\n  delete test;\n  const char* status = result.failed() ? \"FAILED\" : \"OK\";\n  printf(\"%s\\n\", status);\n  fflush(stdout);\n}\n\nbool Runner::runAllTest(bool printSummary) const {\n  size_t const count = testCount();\n  std::deque<TestResult> failures;\n  for (size_t index = 0; index < count; ++index) {\n    TestResult result;\n    runTestAt(index, result);\n    if (result.failed()) {\n      failures.push_back(result);\n    }\n  }\n\n  if (failures.empty()) {\n    if (printSummary) {\n      printf(\"All %zu tests passed\\n\", count);\n    }\n    return true;\n  }\n  for (auto& result : failures) {\n    result.printFailure(count > 1);\n  }\n\n  if (printSummary) {\n    size_t const failedCount = failures.size();\n    size_t const passedCount = count - failedCount;\n    printf(\"%zu/%zu tests passed (%zu failure(s))\\n\", passedCount, count,\n           failedCount);\n  }\n  return false;\n}\n\nbool Runner::testIndex(const Json::String& testName, size_t& indexOut) const {\n  const size_t count = testCount();\n  for (size_t index = 0; index < count; ++index) {\n    if (testNameAt(index) == testName) {\n      indexOut = index;\n      return true;\n    }\n  }\n  return false;\n}\n\nvoid Runner::listTests() const {\n  const size_t count = testCount();\n  for (size_t index = 0; index < count; ++index) {\n    printf(\"%s\\n\", testNameAt(index).c_str());\n  }\n}\n\nint Runner::runCommandLine(int argc, const char* argv[]) const {\n  // typedef std::deque<String> TestNames;\n  Runner subrunner;\n  for (int index = 1; index < argc; ++index) {\n    Json::String opt = argv[index];\n    if (opt == \"--list-tests\") {\n      listTests();\n      return 0;\n    }\n    if (opt == \"--test-auto\") {\n      preventDialogOnCrash();\n    } else if (opt == \"--test\") {\n      ++index;\n      if (index < argc) {\n        size_t testNameIndex;\n        if (testIndex(argv[index], testNameIndex)) {\n          subrunner.add(tests_[testNameIndex]);\n        } else {\n          fprintf(stderr, \"Test '%s' does not exist!\\n\", argv[index]);\n          return 2;\n        }\n      } else {\n        printUsage(argv[0]);\n        return 2;\n      }\n    } else {\n      printUsage(argv[0]);\n      return 2;\n    }\n  }\n  bool succeeded;\n  if (subrunner.testCount() > 0) {\n    succeeded = subrunner.runAllTest(subrunner.testCount() > 1);\n  } else {\n    succeeded = runAllTest(true);\n  }\n  return succeeded ? 0 : 1;\n}\n\n#if defined(_MSC_VER) && defined(_DEBUG)\n// Hook MSVCRT assertions to prevent dialog from appearing\nstatic int msvcrtSilentReportHook(int reportType, char* message,\n                                  int* /*returnValue*/) {\n  // The default CRT handling of error and assertion is to display\n  // an error dialog to the user.\n  // Instead, when an error or an assertion occurs, we force the\n  // application to terminate using abort() after display\n  // the message on stderr.\n  if (reportType == _CRT_ERROR || reportType == _CRT_ASSERT) {\n    // calling abort() cause the ReportHook to be called\n    // The following is used to detect this case and let's the\n    // error handler fallback on its default behaviour (\n    // display a warning message)\n    static volatile bool isAborting = false;\n    if (isAborting) {\n      return TRUE;\n    }\n    isAborting = true;\n\n    fprintf(stderr, \"CRT Error/Assert:\\n%s\\n\", message);\n    fflush(stderr);\n    abort();\n  }\n  // Let's other reportType (_CRT_WARNING) be handled as they would by default\n  return FALSE;\n}\n#endif // if defined(_MSC_VER)\n\nvoid Runner::preventDialogOnCrash() {\n#if defined(_MSC_VER) && defined(_DEBUG)\n  // Install a hook to prevent MSVCRT error and assertion from\n  // popping a dialog\n  // This function a NO-OP in release configuration\n  // (which cause warning since msvcrtSilentReportHook is not referenced)\n  _CrtSetReportHook(&msvcrtSilentReportHook);\n#endif // if defined(_MSC_VER)\n\n  // @todo investigate this handler (for buffer overflow)\n  // _set_security_error_handler\n\n#if defined(_WIN32)\n  // Prevents the system from popping a dialog for debugging if the\n  // application fails due to invalid memory access.\n  SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX |\n               SEM_NOOPENFILEERRORBOX);\n#endif // if defined(_WIN32)\n}\n\nvoid Runner::printUsage(const char* appName) {\n  printf(\"Usage: %s [options]\\n\"\n         \"\\n\"\n         \"If --test is not specified, then all the test cases be run.\\n\"\n         \"\\n\"\n         \"Valid options:\\n\"\n         \"--list-tests: print the name of all test cases on the standard\\n\"\n         \"              output and exit.\\n\"\n         \"--test TESTNAME: executes the test case with the specified name.\\n\"\n         \"                 May be repeated.\\n\"\n         \"--test-auto: prevent dialog prompting for debugging on crash.\\n\",\n         appName);\n}\n\n// Assertion functions\n// //////////////////////////////////////////////////////////////////\n\nJson::String ToJsonString(const char* toConvert) {\n  return Json::String(toConvert);\n}\n\nJson::String ToJsonString(Json::String in) { return in; }\n\n#if JSONCPP_USE_SECURE_MEMORY\nJson::String ToJsonString(std::string in) {\n  return Json::String(in.data(), in.data() + in.length());\n}\n#endif\n\nTestResult& checkStringEqual(TestResult& result, const Json::String& expected,\n                             const Json::String& actual, const char* file,\n                             unsigned int line, const char* expr) {\n  if (expected != actual) {\n    result.addFailure(file, line, expr);\n    result << \"Expected: '\" << expected << \"'\\n\";\n    result << \"Actual  : '\" << actual << \"'\";\n  }\n  return result;\n}\n\n} // namespace JsonTest\n"
  },
  {
    "path": "src/test_lib_json/jsontest.h",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#ifndef JSONTEST_H_INCLUDED\n#define JSONTEST_H_INCLUDED\n\n#include <cstdio>\n#include <deque>\n#include <iomanip>\n#include <json/config.h>\n#include <json/value.h>\n#include <json/writer.h>\n#include <sstream>\n#include <string>\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// Mini Unit Testing framework\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\n/** \\brief Unit testing framework.\n * \\warning: all assertions are non-aborting, test case execution will continue\n *           even if an assertion namespace.\n *           This constraint is for portability: the framework needs to compile\n *           on Visual Studio 6 and must not require exception usage.\n */\nnamespace JsonTest {\n\nclass Failure {\npublic:\n  const char* file_;\n  unsigned int line_;\n  Json::String expr_;\n  Json::String message_;\n  unsigned int nestingLevel_;\n};\n\n/// Context used to create the assertion callstack on failure.\n/// Must be a POD to allow inline initialisation without stepping\n/// into the debugger.\nstruct PredicateContext {\n  using Id = unsigned int;\n  Id id_;\n  const char* file_;\n  unsigned int line_;\n  const char* expr_;\n  PredicateContext* next_;\n  /// Related Failure, set when the PredicateContext is converted\n  /// into a Failure.\n  Failure* failure_;\n};\n\nclass TestResult {\npublic:\n  TestResult();\n\n  /// \\internal Implementation detail for assertion macros\n  /// Not encapsulated to prevent step into when debugging failed assertions\n  /// Incremented by one on assertion predicate entry, decreased by one\n  /// by addPredicateContext().\n  PredicateContext::Id predicateId_{1};\n\n  /// \\internal Implementation detail for predicate macros\n  PredicateContext* predicateStackTail_;\n\n  void setTestName(const Json::String& name);\n\n  /// Adds an assertion failure.\n  TestResult& addFailure(const char* file, unsigned int line,\n                         const char* expr = nullptr);\n\n  /// Removes the last PredicateContext added to the predicate stack\n  /// chained list.\n  /// Next messages will be targeted at the PredicateContext that was removed.\n  TestResult& popPredicateContext();\n\n  bool failed() const;\n\n  void printFailure(bool printTestName) const;\n\n  // Generic operator that will work with anything ostream can deal with.\n  template <typename T> TestResult& operator<<(const T& value) {\n    Json::OStringStream oss;\n    oss << std::setprecision(16) << std::hexfloat << value;\n    return addToLastFailure(oss.str());\n  }\n\n  // Specialized versions.\n  TestResult& operator<<(bool value);\n  // std:ostream does not support 64bits integers on all STL implementation\n  TestResult& operator<<(Json::Int64 value);\n  TestResult& operator<<(Json::UInt64 value);\n\nprivate:\n  TestResult& addToLastFailure(const Json::String& message);\n  /// Adds a failure or a predicate context\n  void addFailureInfo(const char* file, unsigned int line, const char* expr,\n                      unsigned int nestingLevel);\n  static Json::String indentText(const Json::String& text,\n                                 const Json::String& indent);\n\n  using Failures = std::deque<Failure>;\n  Failures failures_;\n  Json::String name_;\n  PredicateContext rootPredicateNode_;\n  PredicateContext::Id lastUsedPredicateId_{0};\n  /// Failure which is the target of the messages added using operator <<\n  Failure* messageTarget_{nullptr};\n};\n\nclass TestCase {\npublic:\n  TestCase();\n\n  virtual ~TestCase();\n\n  void run(TestResult& result);\n\n  virtual const char* testName() const = 0;\n\nprotected:\n  TestResult* result_{nullptr};\n\nprivate:\n  virtual void runTestCase() = 0;\n};\n\n/// Function pointer type for TestCase factory\nusing TestCaseFactory = TestCase* (*)();\n\nclass Runner {\npublic:\n  Runner();\n\n  /// Adds a test to the suite\n  Runner& add(TestCaseFactory factory);\n\n  /// Runs test as specified on the command-line\n  /// If no command-line arguments are provided, run all tests.\n  /// If --list-tests is provided, then print the list of all test cases\n  /// If --test <testname> is provided, then run test testname.\n  int runCommandLine(int argc, const char* argv[]) const;\n\n  /// Runs all the test cases\n  bool runAllTest(bool printSummary) const;\n\n  /// Returns the number of test case in the suite\n  size_t testCount() const;\n\n  /// Returns the name of the test case at the specified index\n  Json::String testNameAt(size_t index) const;\n\n  /// Runs the test case at the specified index using the specified TestResult\n  void runTestAt(size_t index, TestResult& result) const;\n\n  static void printUsage(const char* appName);\n\nprivate: // prevents copy construction and assignment\n  Runner(const Runner& other) = delete;\n  Runner& operator=(const Runner& other) = delete;\n\nprivate:\n  void listTests() const;\n  bool testIndex(const Json::String& testName, size_t& indexOut) const;\n  static void preventDialogOnCrash();\n\nprivate:\n  using Factories = std::deque<TestCaseFactory>;\n  Factories tests_;\n};\n\ntemplate <typename T, typename U>\nTestResult& checkEqual(TestResult& result, T expected, U actual,\n                       const char* file, unsigned int line, const char* expr) {\n  if (static_cast<U>(expected) != actual) {\n    result.addFailure(file, line, expr);\n    result << \"Expected: \" << static_cast<U>(expected) << \"\\n\";\n    result << \"Actual  : \" << actual;\n  }\n  return result;\n}\n\nJson::String ToJsonString(const char* toConvert);\nJson::String ToJsonString(Json::String in);\n#if JSONCPP_USE_SECURE_MEMORY\nJson::String ToJsonString(std::string in);\n#endif\n\nTestResult& checkStringEqual(TestResult& result, const Json::String& expected,\n                             const Json::String& actual, const char* file,\n                             unsigned int line, const char* expr);\n\n} // namespace JsonTest\n\n/// \\brief Asserts that the given expression is true.\n/// JSONTEST_ASSERT( x == y ) << \"x=\" << x << \", y=\" << y;\n/// JSONTEST_ASSERT( x == y );\n#define JSONTEST_ASSERT(expr)                                                  \\\n  if (expr) {                                                                  \\\n  } else                                                                       \\\n    result_->addFailure(__FILE__, __LINE__, #expr)\n\n/// \\brief Asserts that the given predicate is true.\n/// The predicate may do other assertions and be a member function of the\n/// fixture.\n#define JSONTEST_ASSERT_PRED(expr)                                             \\\n  do {                                                                         \\\n    JsonTest::PredicateContext _minitest_Context = {                           \\\n        result_->predicateId_, __FILE__, __LINE__, #expr, NULL, NULL};         \\\n    result_->predicateStackTail_->next_ = &_minitest_Context;                  \\\n    result_->predicateId_ += 1;                                                \\\n    result_->predicateStackTail_ = &_minitest_Context;                         \\\n    (expr);                                                                    \\\n    result_->popPredicateContext();                                            \\\n  } while (0)\n\n/// \\brief Asserts that two values are equals.\n#define JSONTEST_ASSERT_EQUAL(expected, actual)                                \\\n  JsonTest::checkEqual(*result_, expected, actual, __FILE__, __LINE__,         \\\n                       #expected \" == \" #actual)\n\n/// \\brief Asserts that two values are equals.\n#define JSONTEST_ASSERT_STRING_EQUAL(expected, actual)                         \\\n  JsonTest::checkStringEqual(*result_, JsonTest::ToJsonString(expected),       \\\n                             JsonTest::ToJsonString(actual), __FILE__,         \\\n                             __LINE__, #expected \" == \" #actual)\n\n#if JSON_USE_EXCEPTION\n\n/// \\brief Asserts that a given expression throws an exception\n#define JSONTEST_ASSERT_THROWS(expr)                                           \\\n  do {                                                                         \\\n    bool _threw = false;                                                       \\\n    try {                                                                      \\\n      expr;                                                                    \\\n    } catch (...) {                                                            \\\n      _threw = true;                                                           \\\n    }                                                                          \\\n    if (!_threw)                                                               \\\n      result_->addFailure(__FILE__, __LINE__,                                  \\\n                          \"expected exception thrown: \" #expr);                \\\n  } while (0)\n\n#endif // JSON_USE_EXCEPTION\n\n/// \\brief Begin a fixture test case.\n#define JSONTEST_FIXTURE(FixtureType, name)                                    \\\n  class Test##FixtureType##name : public FixtureType {                         \\\n  public:                                                                      \\\n    static JsonTest::TestCase* factory() {                                     \\\n      return new Test##FixtureType##name();                                    \\\n    }                                                                          \\\n                                                                               \\\n  public: /* overridden from TestCase */                                       \\\n    const char* testName() const override { return #FixtureType \"/\" #name; }   \\\n    void runTestCase() override;                                               \\\n  };                                                                           \\\n                                                                               \\\n  void Test##FixtureType##name::runTestCase()\n\n#define JSONTEST_FIXTURE_FACTORY(FixtureType, name)                            \\\n  &Test##FixtureType##name::factory\n\n#define JSONTEST_REGISTER_FIXTURE(runner, FixtureType, name)                   \\\n  (runner).add(JSONTEST_FIXTURE_FACTORY(FixtureType, name))\n\n/// \\brief Begin a fixture test case.\n#define JSONTEST_FIXTURE_V2(FixtureType, name, collections)                    \\\n  class Test##FixtureType##name : public FixtureType {                         \\\n  public:                                                                      \\\n    static JsonTest::TestCase* factory() {                                     \\\n      return new Test##FixtureType##name();                                    \\\n    }                                                                          \\\n    static bool collect() {                                                    \\\n      (collections).push_back(JSONTEST_FIXTURE_FACTORY(FixtureType, name));    \\\n      return true;                                                             \\\n    }                                                                          \\\n                                                                               \\\n  public: /* overridden from TestCase */                                       \\\n    const char* testName() const override { return #FixtureType \"/\" #name; }   \\\n    void runTestCase() override;                                               \\\n  };                                                                           \\\n                                                                               \\\n  static bool test##FixtureType##name##collect =                               \\\n      Test##FixtureType##name::collect();                                      \\\n                                                                               \\\n  void Test##FixtureType##name::runTestCase()\n\n#endif // ifndef JSONTEST_H_INCLUDED\n"
  },
  {
    "path": "src/test_lib_json/main.cpp",
    "content": "// Copyright 2007-2010 Baptiste Lepilleur and The JsonCpp Authors\n// Distributed under MIT license, or public domain if desired and\n// recognized in your jurisdiction.\n// See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n#if defined(__GNUC__)\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wdeprecated-declarations\"\n#elif defined(_MSC_VER)\n#pragma warning(disable : 4996)\n#endif\n\n#include \"fuzz.h\"\n#include \"jsontest.h\"\n#include <algorithm>\n#include <cmath>\n#include <cstring>\n#include <functional>\n#include <iomanip>\n#include <iostream>\n#include <iterator>\n#include <json/config.h>\n#include <json/json.h>\n#include <limits>\n#include <memory>\n#include <sstream>\n#include <string>\n#include <vector>\n\nusing CharReaderPtr = std::unique_ptr<Json::CharReader>;\n\n// Make numeric limits more convenient to talk about.\n// Assumes int type in 32 bits.\n#define kint32max Json::Value::maxInt\n#define kint32min Json::Value::minInt\n#define kuint32max Json::Value::maxUInt\n#define kint64max Json::Value::maxInt64\n#define kint64min Json::Value::minInt64\n#define kuint64max Json::Value::maxUInt64\n\n// static const double kdint64max = double(kint64max);\n// static const float kfint64max = float(kint64max);\nstatic const float kfint32max = float(kint32max);\nstatic const float kfuint32max = float(kuint32max);\n\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n// Json Library test cases\n// //////////////////////////////////////////////////////////////////\n// //////////////////////////////////////////////////////////////////\n\n#if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\nstatic inline double uint64ToDouble(Json::UInt64 value) {\n  return static_cast<double>(value);\n}\n#else  // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\nstatic inline double uint64ToDouble(Json::UInt64 value) {\n  return static_cast<double>(Json::Int64(value / 2)) * 2.0 +\n         static_cast<double>(Json::Int64(value & 1));\n}\n#endif // if !defined(JSON_USE_INT64_DOUBLE_CONVERSION)\n\n// local_ is the collection for the testcases in this code file.\nstatic std::deque<JsonTest::TestCaseFactory> local_;\n#define JSONTEST_FIXTURE_LOCAL(FixtureType, name)                              \\\n  JSONTEST_FIXTURE_V2(FixtureType, name, local_)\n\nstruct ValueTest : JsonTest::TestCase {\n  Json::Value null_;\n  Json::Value emptyArray_{Json::arrayValue};\n  Json::Value emptyObject_{Json::objectValue};\n  Json::Value integer_{123456789};\n  Json::Value unsignedInteger_{34567890};\n  Json::Value smallUnsignedInteger_{Json::Value::UInt(Json::Value::maxInt)};\n  Json::Value real_{1234.56789};\n  Json::Value float_{0.00390625f};\n  Json::Value array1_;\n  Json::Value object1_;\n  Json::Value object2_;\n  Json::Value object3_;\n  Json::Value emptyString_{\"\"};\n  Json::Value string1_{\"a\"};\n  Json::Value string_{\"sometext with space\"};\n  Json::Value true_{true};\n  Json::Value false_{false};\n\n  ValueTest() {\n    array1_.append(1234);\n    object1_[\"id\"] = 1234;\n\n    // object2 with matching values\n    object2_[\"null\"] = Json::nullValue;\n    object2_[\"bool\"] = true;\n    object2_[\"int\"] = Json::Int{Json::Value::maxInt};\n    object2_[\"int64\"] = Json::Int64{Json::Value::maxInt64};\n    object2_[\"uint\"] = Json::UInt{Json::Value::maxUInt};\n    object2_[\"uint64\"] = Json::UInt64{Json::Value::maxUInt64};\n    object2_[\"integral\"] = 1234;\n    object2_[\"double\"] = 1234.56789;\n    object2_[\"numeric\"] = 0.12345f;\n    object2_[\"string\"] = \"string\";\n    object2_[\"array\"] = Json::arrayValue;\n    object2_[\"object\"] = Json::objectValue;\n\n    // object3 with not matching values\n    object3_[\"object\"] = Json::nullValue;\n    object3_[\"null\"] = true;\n    object3_[\"bool\"] = Json::Int{Json::Value::maxInt};\n    object3_[\"int\"] = \"not_an_int\";\n    object3_[\"int64\"] = \"not_an_int64\";\n    object3_[\"uint\"] = \"not_an_uint\";\n    object3_[\"uin64\"] = \"not_an_uint64\";\n    object3_[\"integral\"] = 1234.56789;\n    object3_[\"double\"] = false;\n    object3_[\"numeric\"] = \"string\";\n    object3_[\"string\"] = Json::arrayValue;\n    object3_[\"array\"] = Json::objectValue;\n  }\n\n  struct IsCheck {\n    /// Initialize all checks to \\c false by default.\n    IsCheck();\n\n    bool isObject_{false};\n    bool isArray_{false};\n    bool isBool_{false};\n    bool isString_{false};\n    bool isNull_{false};\n\n    bool isInt_{false};\n    bool isInt64_{false};\n    bool isUInt_{false};\n    bool isUInt64_{false};\n    bool isIntegral_{false};\n    bool isDouble_{false};\n    bool isNumeric_{false};\n  };\n\n  void checkConstMemberCount(const Json::Value& value,\n                             unsigned int expectedCount);\n\n  void checkMemberCount(Json::Value& value, unsigned int expectedCount);\n\n  void checkIs(const Json::Value& value, const IsCheck& check);\n\n  void checkIsLess(const Json::Value& x, const Json::Value& y);\n\n  void checkIsEqual(const Json::Value& x, const Json::Value& y);\n\n  /// Normalize the representation of floating-point number by stripped leading\n  /// 0 in exponent.\n  static Json::String normalizeFloatingPointStr(const Json::String& s);\n\n  void runCZStringTests();\n};\n\nJson::String ValueTest::normalizeFloatingPointStr(const Json::String& s) {\n  auto index = s.find_last_of(\"eE\");\n  if (index == s.npos)\n    return s;\n  std::size_t signWidth = (s[index + 1] == '+' || s[index + 1] == '-') ? 1 : 0;\n  auto exponentStartIndex = index + 1 + signWidth;\n  Json::String normalized = s.substr(0, exponentStartIndex);\n  auto indexDigit = s.find_first_not_of('0', exponentStartIndex);\n  Json::String exponent = \"0\";\n  if (indexDigit != s.npos) { // nonzero exponent\n    exponent = s.substr(indexDigit);\n  }\n  return normalized + exponent;\n}\n\nvoid ValueTest::runCZStringTests() {\n  // 1. Copy Constructor (Index)\n  Json::Value::CZString idx1(123);\n  Json::Value::CZString idx2(idx1);\n  JSONTEST_ASSERT_EQUAL(idx2.index(), 123);\n\n  // 2. Move Constructor (Index)\n  Json::Value::CZString idx3(std::move(idx1));\n  JSONTEST_ASSERT_EQUAL(idx3.index(), 123);\n\n  // 3. Move Assignment (Index)\n  Json::Value::CZString idx4(456);\n  idx4 = std::move(idx3);\n  JSONTEST_ASSERT_EQUAL(idx4.index(), 123);\n\n  // 4. Copy Constructor (String)\n  Json::Value::CZString str1(\"param\", 5,\n                             Json::Value::CZString::duplicateOnCopy);\n  Json::Value::CZString str2((str1)); // copy makes it duplicate (owning)\n  JSONTEST_ASSERT_STRING_EQUAL(str2.data(), \"param\");\n\n  // 5. Move Constructor (String)\n  // Move from Owning string (str2)\n  Json::Value::CZString str3(std::move(str2));\n  JSONTEST_ASSERT_STRING_EQUAL(str3.data(), \"param\");\n\n  // 6. Move Assignment (String)\n  Json::Value::CZString str4(\"other\", 5,\n                             Json::Value::CZString::duplicateOnCopy);\n  Json::Value::CZString str5((str4)); // owning \"other\"\n  // Move-assign owning \"param\" (str3) into owning \"other\" (str5)\n  // This verifies we don't leak \"other\" (if fixed) and correctly take \"param\"\n  str5 = std::move(str3);\n  JSONTEST_ASSERT_STRING_EQUAL(str5.data(), \"param\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, CZStringCoverage) { runCZStringTests(); }\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, checkNormalizeFloatingPointStr) {\n  struct TestData {\n    std::string in;\n    std::string out;\n  } const testData[] = {\n      {\"0.0\", \"0.0\"},\n      {\"0e0\", \"0e0\"},\n      {\"1234.0\", \"1234.0\"},\n      {\"1234.0e0\", \"1234.0e0\"},\n      {\"1234.0e-1\", \"1234.0e-1\"},\n      {\"1234.0e+0\", \"1234.0e+0\"},\n      {\"1234.0e+001\", \"1234.0e+1\"},\n      {\"1234e-1\", \"1234e-1\"},\n      {\"1234e+000\", \"1234e+0\"},\n      {\"1234e+001\", \"1234e+1\"},\n      {\"1234e10\", \"1234e10\"},\n      {\"1234e010\", \"1234e10\"},\n      {\"1234e+010\", \"1234e+10\"},\n      {\"1234e-010\", \"1234e-10\"},\n      {\"1234e+100\", \"1234e+100\"},\n      {\"1234e-100\", \"1234e-100\"},\n  };\n  for (const auto& td : testData) {\n    JSONTEST_ASSERT_STRING_EQUAL(normalizeFloatingPointStr(td.in), td.out);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, memberCount) {\n  JSONTEST_ASSERT_PRED(checkMemberCount(emptyArray_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(emptyObject_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(array1_, 1));\n  JSONTEST_ASSERT_PRED(checkMemberCount(object1_, 1));\n  JSONTEST_ASSERT_PRED(checkMemberCount(null_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(integer_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(unsignedInteger_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(smallUnsignedInteger_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(real_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(emptyString_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(string_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(true_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(false_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(string1_, 0));\n  JSONTEST_ASSERT_PRED(checkMemberCount(float_, 0));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, objects) {\n  // Types\n  IsCheck checks;\n  checks.isObject_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(emptyObject_, checks));\n  JSONTEST_ASSERT_PRED(checkIs(object1_, checks));\n\n  JSONTEST_ASSERT_EQUAL(Json::objectValue, emptyObject_.type());\n\n  // Empty object okay\n  JSONTEST_ASSERT(emptyObject_.isConvertibleTo(Json::nullValue));\n\n  // Non-empty object not okay\n  JSONTEST_ASSERT(!object1_.isConvertibleTo(Json::nullValue));\n\n  // Always okay\n  JSONTEST_ASSERT(emptyObject_.isConvertibleTo(Json::objectValue));\n\n  // Never okay\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(!emptyObject_.isConvertibleTo(Json::stringValue));\n\n  // Access through const reference\n  const Json::Value& constObject = object1_;\n\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), constObject[\"id\"]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(), constObject[\"unknown id\"]);\n\n  // Access through find()\n  const char idKey[] = \"id\";\n  const Json::Value* foundId = object1_.find(idKey, idKey + strlen(idKey));\n  JSONTEST_ASSERT(foundId != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), *foundId);\n\n  const std::string stringIdKey = \"id\";\n  const Json::Value* stringFoundId = object1_.find(stringIdKey);\n  JSONTEST_ASSERT(stringFoundId != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), *stringFoundId);\n\n  const char unknownIdKey[] = \"unknown id\";\n  const Json::Value* foundUnknownId =\n      object1_.find(unknownIdKey, unknownIdKey + strlen(unknownIdKey));\n  JSONTEST_ASSERT_EQUAL(nullptr, foundUnknownId);\n\n  const std::string stringUnknownIdKey = \"unknown id\";\n  const Json::Value* stringFoundUnknownId = object1_.find(stringUnknownIdKey);\n  JSONTEST_ASSERT_EQUAL(nullptr, stringFoundUnknownId);\n\n  // Access through find<Type>()\n  const Json::Value* nullFound = object2_.findNull(\"null\");\n  JSONTEST_ASSERT(nullFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::nullValue, *nullFound);\n  JSONTEST_ASSERT(object3_.findNull(\"null\") == nullptr);\n\n  const Json::Value* boolFound = object2_.findBool(\"bool\");\n  JSONTEST_ASSERT(boolFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(true, *boolFound);\n  JSONTEST_ASSERT(object3_.findBool(\"bool\") == nullptr);\n\n  const Json::Value* intFound = object2_.findInt(\"int\");\n  JSONTEST_ASSERT(intFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::Int{Json::Value::maxInt}, *intFound);\n  JSONTEST_ASSERT(object3_.findInt(\"int\") == nullptr);\n\n  const Json::Value* int64Found = object2_.findInt64(\"int64\");\n  JSONTEST_ASSERT(int64Found != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::Int64{Json::Value::maxInt64}, *int64Found);\n  JSONTEST_ASSERT(object3_.findInt64(\"int64\") == nullptr);\n\n  const Json::Value* uintFound = object2_.findUInt(\"uint\");\n  JSONTEST_ASSERT(uintFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::UInt{Json::Value::maxUInt}, *uintFound);\n  JSONTEST_ASSERT(object3_.findUInt(\"uint\") == nullptr);\n\n  const Json::Value* uint64Found = object2_.findUInt64(\"uint64\");\n  JSONTEST_ASSERT(uint64Found != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::UInt64{Json::Value::maxUInt64}, *uint64Found);\n  JSONTEST_ASSERT(object3_.findUInt64(\"uint64\") == nullptr);\n\n  const Json::Value* integralFound = object2_.findIntegral(\"integral\");\n  JSONTEST_ASSERT(integralFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(1234, *integralFound);\n  JSONTEST_ASSERT(object3_.findIntegral(\"integral\") == nullptr);\n\n  const Json::Value* doubleFound = object2_.findDouble(\"double\");\n  JSONTEST_ASSERT(doubleFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(1234.56789, *doubleFound);\n  JSONTEST_ASSERT(object3_.findDouble(\"double\") == nullptr);\n\n  const Json::Value* numericFound = object2_.findNumeric(\"numeric\");\n  JSONTEST_ASSERT(numericFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(0.12345f, *numericFound);\n  JSONTEST_ASSERT(object3_.findNumeric(\"numeric\") == nullptr);\n\n  const Json::Value* stringFound = object2_.findString(\"string\");\n  JSONTEST_ASSERT(stringFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(std::string{\"string\"}, *stringFound);\n  JSONTEST_ASSERT(object3_.findString(\"string\") == nullptr);\n\n  const Json::Value* arrayFound = object2_.findArray(\"array\");\n  JSONTEST_ASSERT(arrayFound != nullptr);\n  JSONTEST_ASSERT_EQUAL(Json::arrayValue, *arrayFound);\n  JSONTEST_ASSERT(object3_.findArray(\"array\") == nullptr);\n\n  // Access through demand()\n  const char yetAnotherIdKey[] = \"yet another id\";\n  const Json::Value* foundYetAnotherId =\n      object1_.find(yetAnotherIdKey, yetAnotherIdKey + strlen(yetAnotherIdKey));\n  JSONTEST_ASSERT_EQUAL(nullptr, foundYetAnotherId);\n  Json::Value* demandedYetAnotherId = object1_.demand(\n      yetAnotherIdKey, yetAnotherIdKey + strlen(yetAnotherIdKey));\n  JSONTEST_ASSERT(demandedYetAnotherId != nullptr);\n  *demandedYetAnotherId = \"baz\";\n\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"baz\"), object1_[\"yet another id\"]);\n\n  // Access through non-const reference\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), object1_[\"id\"]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(), object1_[\"unknown id\"]);\n\n  object1_[\"some other id\"] = \"foo\";\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"foo\"), object1_[\"some other id\"]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"foo\"), object1_[\"some other id\"]);\n\n  // Remove.\n  Json::Value got;\n  bool did;\n  did = object1_.removeMember(\"some other id\", &got);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"foo\"), got);\n  JSONTEST_ASSERT_EQUAL(true, did);\n  got = Json::Value(\"bar\");\n  did = object1_.removeMember(\"some other id\", &got);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"bar\"), got);\n  JSONTEST_ASSERT_EQUAL(false, did);\n\n  object1_[\"some other id\"] = \"foo\";\n  Json::Value* gotPtr = nullptr;\n  did = object1_.removeMember(\"some other id\", gotPtr);\n  JSONTEST_ASSERT_EQUAL(nullptr, gotPtr);\n  JSONTEST_ASSERT_EQUAL(true, did);\n\n  // Using other removeMember interfaces, the test idea is the same as above.\n  object1_[\"some other id\"] = \"foo\";\n  const Json::String key(\"some other id\");\n  did = object1_.removeMember(key, &got);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"foo\"), got);\n  JSONTEST_ASSERT_EQUAL(true, did);\n  got = Json::Value(\"bar\");\n  did = object1_.removeMember(key, &got);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"bar\"), got);\n  JSONTEST_ASSERT_EQUAL(false, did);\n\n  object1_[\"some other id\"] = \"foo\";\n  object1_.removeMember(key);\n  JSONTEST_ASSERT_EQUAL(Json::nullValue, object1_[key]);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, arrays) {\n  const unsigned int index0 = 0;\n\n  // Types\n  IsCheck checks;\n  checks.isArray_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(emptyArray_, checks));\n  JSONTEST_ASSERT_PRED(checkIs(array1_, checks));\n\n  JSONTEST_ASSERT_EQUAL(Json::arrayValue, array1_.type());\n\n  // Empty array okay\n  JSONTEST_ASSERT(emptyArray_.isConvertibleTo(Json::nullValue));\n\n  // Non-empty array not okay\n  JSONTEST_ASSERT(!array1_.isConvertibleTo(Json::nullValue));\n\n  // Always okay\n  JSONTEST_ASSERT(emptyArray_.isConvertibleTo(Json::arrayValue));\n\n  // Never okay\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::objectValue));\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(!emptyArray_.isConvertibleTo(Json::stringValue));\n\n  // Access through const reference\n  const Json::Value& constArray = array1_;\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[index0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), constArray.back());\n\n  // Access through non-const reference\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), array1_[index0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), array1_[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), array1_.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(1234), array1_.back());\n\n  array1_[2] = Json::Value(17);\n  JSONTEST_ASSERT_EQUAL(Json::Value(), array1_[1]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(17), array1_[2]);\n  Json::Value got;\n  JSONTEST_ASSERT_EQUAL(true, array1_.removeIndex(2, &got));\n  JSONTEST_ASSERT_EQUAL(Json::Value(17), got);\n  JSONTEST_ASSERT_EQUAL(false, array1_.removeIndex(2, &got)); // gone now\n}\nJSONTEST_FIXTURE_LOCAL(ValueTest, resizeArray) {\n  Json::Value array;\n  {\n    for (Json::ArrayIndex i = 0; i < 10; i++)\n      array[i] = i;\n    JSONTEST_ASSERT_EQUAL(array.size(), 10);\n    // The length set is greater than the length of the array.\n    array.resize(15);\n    JSONTEST_ASSERT_EQUAL(array.size(), 15);\n\n    // The length set is less than the length of the array.\n    array.resize(5);\n    JSONTEST_ASSERT_EQUAL(array.size(), 5);\n\n    // The length of the array is set to 0.\n    array.resize(0);\n    JSONTEST_ASSERT_EQUAL(array.size(), 0);\n  }\n  {\n    for (Json::ArrayIndex i = 0; i < 10; i++)\n      array[i] = i;\n    JSONTEST_ASSERT_EQUAL(array.size(), 10);\n    array.clear();\n    JSONTEST_ASSERT_EQUAL(array.size(), 0);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, copyMoveArray) {\n  Json::Value array;\n  array.append(\"item1\");\n  array.append(\"item2\");\n\n  // Test Copy Constructor (covers CZString(const CZString&) with index)\n  Json::Value copy(array);\n  JSONTEST_ASSERT_EQUAL(copy.size(), 2);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"item1\"), copy[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"item2\"), copy[1]);\n\n  // Test Move Constructor (covers CZString(CZString&&) with index)\n  Json::Value moved(std::move(copy));\n  JSONTEST_ASSERT_EQUAL(moved.size(), 2);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"item1\"), moved[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"item2\"), moved[1]);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, resizePopulatesAllMissingElements) {\n  Json::ArrayIndex n = 10;\n  Json::Value v;\n  v.resize(n);\n  JSONTEST_ASSERT_EQUAL(n, v.size());\n  JSONTEST_ASSERT_EQUAL(n, std::distance(v.begin(), v.end()));\n  JSONTEST_ASSERT_EQUAL(v.front(), Json::Value{});\n  JSONTEST_ASSERT_EQUAL(v.back(), Json::Value{});\n  for (const Json::Value& e : v)\n    JSONTEST_ASSERT_EQUAL(e, Json::Value{});\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, getArrayValue) {\n  Json::Value array;\n  for (Json::ArrayIndex i = 0; i < 5; i++)\n    array[i] = i;\n\n  JSONTEST_ASSERT_EQUAL(array.size(), 5);\n  const Json::Value defaultValue(10);\n  Json::ArrayIndex index = 0;\n  for (; index <= 4; index++)\n    JSONTEST_ASSERT_EQUAL(index, array.get(index, defaultValue).asInt());\n\n  index = 4;\n  JSONTEST_ASSERT_EQUAL(array.isValidIndex(index), true);\n  index = 5;\n  JSONTEST_ASSERT_EQUAL(array.isValidIndex(index), false);\n  JSONTEST_ASSERT_EQUAL(defaultValue, array.get(index, defaultValue));\n  JSONTEST_ASSERT_EQUAL(array.isValidIndex(index), false);\n}\nJSONTEST_FIXTURE_LOCAL(ValueTest, arrayIssue252) {\n  int count = 5;\n  Json::Value root;\n  Json::Value item;\n  root[\"array\"] = Json::Value::nullSingleton();\n  for (int i = 0; i < count; i++) {\n    item[\"a\"] = i;\n    item[\"b\"] = i;\n    root[\"array\"][i] = item;\n  }\n  // JSONTEST_ASSERT_EQUAL(5, root[\"array\"].size());\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, arrayInsertAtRandomIndex) {\n  Json::Value array;\n  const Json::Value str0(\"index2\");\n  const Json::Value str1(\"index3\");\n  array.append(\"index0\"); // append rvalue\n  array.append(\"index1\");\n  array.append(str0); // append lvalue\n\n  std::vector<Json::Value*> vec; // storage value address for checking\n  for (Json::ArrayIndex i = 0; i < 3; i++) {\n    vec.push_back(&array[i]);\n  }\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index0\"), array[0]); // check append\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index1\"), array[1]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array[2]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index0\"), array.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array.back());\n\n  // insert lvalue at the head\n  JSONTEST_ASSERT(array.insert(0, str1));\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index0\"), array[1]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index1\"), array[2]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array[3]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array.back());\n  // checking address\n  for (Json::ArrayIndex i = 0; i < 3; i++) {\n    JSONTEST_ASSERT_EQUAL(vec[i], &array[i]);\n  }\n  vec.push_back(&array[3]);\n  // insert rvalue at middle\n  JSONTEST_ASSERT(array.insert(2, \"index4\"));\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index0\"), array[1]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index4\"), array[2]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index1\"), array[3]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array[4]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array.back());\n  // checking address\n  for (Json::ArrayIndex i = 0; i < 4; i++) {\n    JSONTEST_ASSERT_EQUAL(vec[i], &array[i]);\n  }\n  vec.push_back(&array[4]);\n  // insert rvalue at the tail\n  JSONTEST_ASSERT(array.insert(5, \"index5\"));\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array[0]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index0\"), array[1]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index4\"), array[2]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index1\"), array[3]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index2\"), array[4]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index5\"), array[5]);\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index3\"), array.front());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"index5\"), array.back());\n  // checking address\n  for (Json::ArrayIndex i = 0; i < 5; i++) {\n    JSONTEST_ASSERT_EQUAL(vec[i], &array[i]);\n  }\n  vec.push_back(&array[5]);\n  // beyond max array size, it should not be allowed to insert into its tail\n  JSONTEST_ASSERT(!array.insert(10, \"index10\"));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, null) {\n  JSONTEST_ASSERT_EQUAL(Json::nullValue, null_.type());\n\n  IsCheck checks;\n  checks.isNull_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(null_, checks));\n\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(null_.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(Json::Int(0), null_.asInt());\n  JSONTEST_ASSERT_EQUAL(Json::LargestInt(0), null_.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(Json::UInt(0), null_.asUInt());\n  JSONTEST_ASSERT_EQUAL(Json::LargestUInt(0), null_.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, null_.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, null_.asFloat());\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", null_.asString());\n\n  JSONTEST_ASSERT_EQUAL(Json::Value::nullSingleton(), null_);\n\n  // Test using a Value in a boolean context (false iff null)\n  JSONTEST_ASSERT_EQUAL(null_, false);\n  JSONTEST_ASSERT_EQUAL(object1_, true);\n  JSONTEST_ASSERT_EQUAL(!null_, true);\n  JSONTEST_ASSERT_EQUAL(!object1_, false);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, strings) {\n  JSONTEST_ASSERT_EQUAL(Json::stringValue, string1_.type());\n\n  IsCheck checks;\n  checks.isString_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(emptyString_, checks));\n  JSONTEST_ASSERT_PRED(checkIs(string_, checks));\n  JSONTEST_ASSERT_PRED(checkIs(string1_, checks));\n\n  // Empty string okay\n  JSONTEST_ASSERT(emptyString_.isConvertibleTo(Json::nullValue));\n\n  // Non-empty string not okay\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::nullValue));\n\n  // Always okay\n  JSONTEST_ASSERT(string1_.isConvertibleTo(Json::stringValue));\n\n  // Never okay\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::objectValue));\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!string1_.isConvertibleTo(Json::realValue));\n\n  JSONTEST_ASSERT_STRING_EQUAL(\"a\", string1_.asString());\n  JSONTEST_ASSERT_STRING_EQUAL(\"a\", string1_.asCString());\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, bools) {\n  JSONTEST_ASSERT_EQUAL(Json::booleanValue, false_.type());\n\n  IsCheck checks;\n  checks.isBool_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(false_, checks));\n  JSONTEST_ASSERT_PRED(checkIs(true_, checks));\n\n  // False okay\n  JSONTEST_ASSERT(false_.isConvertibleTo(Json::nullValue));\n\n  // True not okay\n  JSONTEST_ASSERT(!true_.isConvertibleTo(Json::nullValue));\n\n  // Always okay\n  JSONTEST_ASSERT(true_.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(true_.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(true_.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(true_.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(true_.isConvertibleTo(Json::stringValue));\n\n  // Never okay\n  JSONTEST_ASSERT(!true_.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!true_.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(true, true_.asBool());\n  JSONTEST_ASSERT_EQUAL(1, true_.asInt());\n  JSONTEST_ASSERT_EQUAL(1, true_.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(1, true_.asUInt());\n  JSONTEST_ASSERT_EQUAL(1, true_.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(1.0, true_.asDouble());\n  JSONTEST_ASSERT_EQUAL(1.0, true_.asFloat());\n\n  JSONTEST_ASSERT_EQUAL(false, false_.asBool());\n  JSONTEST_ASSERT_EQUAL(0, false_.asInt());\n  JSONTEST_ASSERT_EQUAL(0, false_.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, false_.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, false_.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, false_.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, false_.asFloat());\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, integers) {\n  IsCheck checks;\n  Json::Value val;\n\n  // Conversions that don't depend on the value.\n  JSONTEST_ASSERT(Json::Value(17).isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(Json::Value(17).isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(Json::Value(17).isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(!Json::Value(17).isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!Json::Value(17).isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT(Json::Value(17U).isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(Json::Value(17U).isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(Json::Value(17U).isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(!Json::Value(17U).isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!Json::Value(17U).isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT(Json::Value(17.0).isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(Json::Value(17.0).isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(Json::Value(17.0).isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(!Json::Value(17.0).isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!Json::Value(17.0).isConvertibleTo(Json::objectValue));\n\n  // Default int\n  val = Json::Value(Json::intValue);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0\", val.asString());\n\n  // Default uint\n  val = Json::Value(Json::uintValue);\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0\", val.asString());\n\n  // Default real\n  val = Json::Value(Json::realValue);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0.0\", val.asString());\n\n  // Zero (signed constructor arg)\n  val = Json::Value(0);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0\", val.asString());\n\n  // Zero (unsigned constructor arg)\n  val = Json::Value(0u);\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0\", val.asString());\n\n  // Zero (floating-point constructor arg)\n  val = Json::Value(0.0);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(0, val.asInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(0, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(0.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(false, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"0.0\", val.asString());\n\n  // 2^20 (signed constructor arg)\n  val = Json::Value(1 << 20);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"1048576\", val.asString());\n\n  // 2^20 (unsigned constructor arg)\n  val = Json::Value(Json::UInt(1 << 20));\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"1048576\", val.asString());\n\n  // 2^20 (floating-point constructor arg)\n  val = Json::Value((1 << 20) / 1.0);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((1 << 20), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1048576.0\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // -2^20\n  val = Json::Value(-(1 << 20));\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(-(1 << 20), val.asInt());\n  JSONTEST_ASSERT_EQUAL(-(1 << 20), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(-(1 << 20), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(-(1 << 20), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"-1048576\", val.asString());\n\n  // int32 max\n  val = Json::Value(kint32max);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(kint32max, val.asInt());\n  JSONTEST_ASSERT_EQUAL(kint32max, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(kint32max, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(kint32max, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(kint32max, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(kfint32max, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"2147483647\", val.asString());\n\n  // int32 min\n  val = Json::Value(kint32min);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt_ = true;\n  checks.isInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(kint32min, val.asInt());\n  JSONTEST_ASSERT_EQUAL(kint32min, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(kint32min, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(kint32min, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"-2147483648\", val.asString());\n\n  // uint32 max\n  val = Json::Value(kuint32max);\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isUInt_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n\n#ifndef JSON_NO_INT64\n  JSONTEST_ASSERT_EQUAL(kuint32max, val.asLargestInt());\n#endif\n  JSONTEST_ASSERT_EQUAL(kuint32max, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(kuint32max, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(kuint32max, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(kfuint32max, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"4294967295\", val.asString());\n\n#ifdef JSON_NO_INT64\n  // int64 max\n  val = Json::Value(double(kint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(double(kint64max), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(kint64max), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"9.22337e+18\", val.asString());\n\n  // int64 min\n  val = Json::Value(double(kint64min));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(double(kint64min), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(kint64min), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"-9.22337e+18\", val.asString());\n\n  // uint64 max\n  val = Json::Value(double(kuint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(double(kuint64max), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(kuint64max), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"1.84467e+19\", val.asString());\n#else // ifdef JSON_NO_INT64\n  // 2^40 (signed constructor arg)\n  val = Json::Value(Json::Int64(1) << 40);\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asUInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"1099511627776\", val.asString());\n\n  // 2^40 (unsigned constructor arg)\n  val = Json::Value(Json::UInt64(1) << 40);\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asUInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"1099511627776\", val.asString());\n\n  // 2^40 (floating-point constructor arg)\n  val = Json::Value((Json::Int64(1) << 40) / 1.0);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asUInt64());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asDouble());\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 40), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1099511627776.0\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // -2^40\n  val = Json::Value(-(Json::Int64(1) << 40));\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 40), val.asInt64());\n  JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 40), val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 40), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 40), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"-1099511627776\", val.asString());\n\n  // int64 max\n  val = Json::Value(Json::Int64(kint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(kint64max, val.asInt64());\n  JSONTEST_ASSERT_EQUAL(kint64max, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(kint64max, val.asUInt64());\n  JSONTEST_ASSERT_EQUAL(kint64max, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(double(kint64max), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(kint64max), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"9223372036854775807\", val.asString());\n\n  // int64 max (floating point constructor). Note that kint64max is not exactly\n  // representable as a double, and will be rounded up to be higher.\n  val = Json::Value(double(kint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(Json::UInt64(1) << 63, val.asUInt64());\n  JSONTEST_ASSERT_EQUAL(Json::UInt64(1) << 63, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(uint64ToDouble(Json::UInt64(1) << 63), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(Json::UInt64(1) << 63), val.asFloat());\n\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"9.2233720368547758e+18\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // int64 min\n  val = Json::Value(Json::Int64(kint64min));\n\n  JSONTEST_ASSERT_EQUAL(Json::intValue, val.type());\n\n  checks = IsCheck();\n  checks.isInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(kint64min, val.asInt64());\n  JSONTEST_ASSERT_EQUAL(kint64min, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(double(kint64min), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(kint64min), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"-9223372036854775808\", val.asString());\n\n  // int64 min (floating point constructor). Since double values in proximity of\n  // kint64min are rounded to kint64min, we don't check for conversion to int64.\n  val = Json::Value(double(kint64min));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(-9223372036854775808.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(-9223372036854775808.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"-9.2233720368547758e+18\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // 10^19\n  const auto ten_to_19 = static_cast<Json::UInt64>(1e19);\n  val = Json::Value(Json::UInt64(ten_to_19));\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(ten_to_19, val.asUInt64());\n  JSONTEST_ASSERT_EQUAL(ten_to_19, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(uint64ToDouble(ten_to_19), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(uint64ToDouble(ten_to_19)), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"10000000000000000000\", val.asString());\n\n  // 10^19 (double constructor). Note that 10^19 is not exactly representable\n  // as a double.\n  val = Json::Value(uint64ToDouble(ten_to_19));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(1e19, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(1e19, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1e+19\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // uint64 max\n  val = Json::Value(Json::UInt64(kuint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::uintValue, val.type());\n\n  checks = IsCheck();\n  checks.isUInt64_ = true;\n  checks.isIntegral_ = true;\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(kuint64max, val.asUInt64());\n  JSONTEST_ASSERT_EQUAL(kuint64max, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(uint64ToDouble(kuint64max), val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(uint64ToDouble(kuint64max)), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\"18446744073709551615\", val.asString());\n\n  // uint64 max (floating point constructor). Note that kuint64max is not\n  // exactly representable as a double, and will be rounded up to be higher.\n  val = Json::Value(uint64ToDouble(kuint64max));\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n\n  JSONTEST_ASSERT_EQUAL(18446744073709551616.0, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(18446744073709551616.0, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1.8446744073709552e+19\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n#endif\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, nonIntegers) {\n  IsCheck checks;\n  Json::Value val;\n\n  // Small positive number\n  val = Json::Value(1.5);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(1.5, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(1.5, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(1, val.asInt());\n  JSONTEST_ASSERT_EQUAL(1, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(1, val.asUInt());\n  JSONTEST_ASSERT_EQUAL(1, val.asLargestUInt());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_EQUAL(\"1.5\", val.asString());\n\n  // Small negative number\n  val = Json::Value(-1.5);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(-1.5, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(-1.5, val.asFloat());\n  JSONTEST_ASSERT_EQUAL(-1, val.asInt());\n  JSONTEST_ASSERT_EQUAL(-1, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_EQUAL(\"-1.5\", val.asString());\n\n  // A bit over int32 max\n  val = Json::Value(kint32max + 0.5);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(2147483647.5, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(2147483647.5), val.asFloat());\n  JSONTEST_ASSERT_EQUAL(2147483647U, val.asUInt());\n#ifdef JSON_HAS_INT64\n  JSONTEST_ASSERT_EQUAL(2147483647L, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL(2147483647U, val.asLargestUInt());\n#endif\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_EQUAL(\n      \"2147483647.5\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // A bit under int32 min\n  val = Json::Value(kint32min - 0.5);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(-2147483648.5, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(-2147483648.5), val.asFloat());\n#ifdef JSON_HAS_INT64\n  JSONTEST_ASSERT_EQUAL(-(Json::Int64(1) << 31), val.asLargestInt());\n#endif\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_EQUAL(\n      \"-2147483648.5\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // A bit over uint32 max\n  val = Json::Value(kuint32max + 0.5);\n\n  JSONTEST_ASSERT_EQUAL(Json::realValue, val.type());\n\n  checks = IsCheck();\n  checks.isDouble_ = true;\n  checks.isNumeric_ = true;\n  JSONTEST_ASSERT_PRED(checkIs(val, checks));\n\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::realValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::booleanValue));\n  JSONTEST_ASSERT(val.isConvertibleTo(Json::stringValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::nullValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::intValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::uintValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::arrayValue));\n  JSONTEST_ASSERT(!val.isConvertibleTo(Json::objectValue));\n\n  JSONTEST_ASSERT_EQUAL(4294967295.5, val.asDouble());\n  JSONTEST_ASSERT_EQUAL(float(4294967295.5), val.asFloat());\n#ifdef JSON_HAS_INT64\n  JSONTEST_ASSERT_EQUAL((Json::Int64(1) << 32) - 1, val.asLargestInt());\n  JSONTEST_ASSERT_EQUAL((Json::UInt64(1) << 32) - Json::UInt64(1),\n                        val.asLargestUInt());\n#endif\n  JSONTEST_ASSERT_EQUAL(true, val.asBool());\n  JSONTEST_ASSERT_EQUAL(\n      \"4294967295.5\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  val = Json::Value(1.2345678901234);\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1.2345678901234001\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // A 16-digit floating point number.\n  val = Json::Value(2199023255552000.0f);\n  JSONTEST_ASSERT_EQUAL(float(2199023255552000.0f), val.asFloat());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"2199023255552000.0\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // A very large floating point number.\n  val = Json::Value(3.402823466385289e38);\n  JSONTEST_ASSERT_EQUAL(float(3.402823466385289e38), val.asFloat());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"3.402823466385289e+38\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n\n  // An even larger floating point number.\n  val = Json::Value(1.2345678e300);\n  JSONTEST_ASSERT_EQUAL(double(1.2345678e300), val.asDouble());\n  JSONTEST_ASSERT_STRING_EQUAL(\n      \"1.2345678e+300\",\n      normalizeFloatingPointStr(JsonTest::ToJsonString(val.asString())));\n}\n\nvoid ValueTest::checkConstMemberCount(const Json::Value& value,\n                                      unsigned int expectedCount) {\n  unsigned int count = 0;\n  Json::Value::const_iterator itEnd = value.end();\n  for (Json::Value::const_iterator it = value.begin(); it != itEnd; ++it) {\n    ++count;\n  }\n  JSONTEST_ASSERT_EQUAL(expectedCount, count) << \"Json::Value::const_iterator\";\n}\n\nvoid ValueTest::checkMemberCount(Json::Value& value,\n                                 unsigned int expectedCount) {\n  JSONTEST_ASSERT_EQUAL(expectedCount, value.size());\n\n  unsigned int count = 0;\n  Json::Value::iterator itEnd = value.end();\n  for (Json::Value::iterator it = value.begin(); it != itEnd; ++it) {\n    ++count;\n  }\n  JSONTEST_ASSERT_EQUAL(expectedCount, count) << \"Json::Value::iterator\";\n\n  JSONTEST_ASSERT_PRED(checkConstMemberCount(value, expectedCount));\n}\n\nValueTest::IsCheck::IsCheck() = default;\n\nvoid ValueTest::checkIs(const Json::Value& value, const IsCheck& check) {\n  JSONTEST_ASSERT_EQUAL(check.isObject_, value.isObject());\n  JSONTEST_ASSERT_EQUAL(check.isArray_, value.isArray());\n  JSONTEST_ASSERT_EQUAL(check.isBool_, value.isBool());\n  JSONTEST_ASSERT_EQUAL(check.isDouble_, value.isDouble());\n  JSONTEST_ASSERT_EQUAL(check.isInt_, value.isInt());\n  JSONTEST_ASSERT_EQUAL(check.isUInt_, value.isUInt());\n  JSONTEST_ASSERT_EQUAL(check.isIntegral_, value.isIntegral());\n  JSONTEST_ASSERT_EQUAL(check.isNumeric_, value.isNumeric());\n  JSONTEST_ASSERT_EQUAL(check.isString_, value.isString());\n  JSONTEST_ASSERT_EQUAL(check.isNull_, value.isNull());\n\n#ifdef JSON_HAS_INT64\n  JSONTEST_ASSERT_EQUAL(check.isInt64_, value.isInt64());\n  JSONTEST_ASSERT_EQUAL(check.isUInt64_, value.isUInt64());\n#else\n  JSONTEST_ASSERT_EQUAL(false, value.isInt64());\n  JSONTEST_ASSERT_EQUAL(false, value.isUInt64());\n#endif\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareNull) {\n  JSONTEST_ASSERT_PRED(checkIsEqual(Json::Value(), Json::Value()));\n  JSONTEST_ASSERT_PRED(\n      checkIsEqual(Json::Value::nullSingleton(), Json::Value()));\n  JSONTEST_ASSERT_PRED(\n      checkIsEqual(Json::Value::nullSingleton(), Json::Value::nullSingleton()));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareInt) {\n  JSONTEST_ASSERT_PRED(checkIsLess(0, 10));\n  JSONTEST_ASSERT_PRED(checkIsEqual(10, 10));\n  JSONTEST_ASSERT_PRED(checkIsEqual(-10, -10));\n  JSONTEST_ASSERT_PRED(checkIsLess(-10, 0));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareUInt) {\n  JSONTEST_ASSERT_PRED(checkIsLess(0u, 10u));\n  JSONTEST_ASSERT_PRED(checkIsLess(0u, Json::Value::maxUInt));\n  JSONTEST_ASSERT_PRED(checkIsEqual(10u, 10u));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareDouble) {\n  JSONTEST_ASSERT_PRED(checkIsLess(0.0, 10.0));\n  JSONTEST_ASSERT_PRED(checkIsEqual(10.0, 10.0));\n  JSONTEST_ASSERT_PRED(checkIsEqual(-10.0, -10.0));\n  JSONTEST_ASSERT_PRED(checkIsLess(-10.0, 0.0));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareString) {\n  JSONTEST_ASSERT_PRED(checkIsLess(\"\", \" \"));\n  JSONTEST_ASSERT_PRED(checkIsLess(\"\", \"a\"));\n  JSONTEST_ASSERT_PRED(checkIsLess(\"abcd\", \"zyui\"));\n  JSONTEST_ASSERT_PRED(checkIsLess(\"abc\", \"abcd\"));\n  JSONTEST_ASSERT_PRED(checkIsEqual(\"abcd\", \"abcd\"));\n  JSONTEST_ASSERT_PRED(checkIsEqual(\" \", \" \"));\n  JSONTEST_ASSERT_PRED(checkIsLess(\"ABCD\", \"abcd\"));\n  JSONTEST_ASSERT_PRED(checkIsEqual(\"ABCD\", \"ABCD\"));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareBoolean) {\n  JSONTEST_ASSERT_PRED(checkIsLess(false, true));\n  JSONTEST_ASSERT_PRED(checkIsEqual(false, false));\n  JSONTEST_ASSERT_PRED(checkIsEqual(true, true));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareArray) {\n  // array compare size then content\n  Json::Value emptyArray(Json::arrayValue);\n  Json::Value l1aArray;\n  l1aArray.append(0);\n  Json::Value l1bArray;\n  l1bArray.append(10);\n  Json::Value l2aArray;\n  l2aArray.append(0);\n  l2aArray.append(0);\n  Json::Value l2bArray;\n  l2bArray.append(0);\n  l2bArray.append(10);\n  JSONTEST_ASSERT_PRED(checkIsLess(emptyArray, l1aArray));\n  JSONTEST_ASSERT_PRED(checkIsLess(emptyArray, l2aArray));\n  JSONTEST_ASSERT_PRED(checkIsLess(l1aArray, l1bArray));\n  JSONTEST_ASSERT_PRED(checkIsLess(l1bArray, l2aArray));\n  JSONTEST_ASSERT_PRED(checkIsLess(l2aArray, l2bArray));\n  JSONTEST_ASSERT_PRED(checkIsEqual(emptyArray, Json::Value(emptyArray)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l1aArray, Json::Value(l1aArray)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l1bArray, Json::Value(l1bArray)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l2aArray, Json::Value(l2aArray)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l2bArray, Json::Value(l2bArray)));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareObject) {\n  // object compare size then content\n  Json::Value emptyObject(Json::objectValue);\n  Json::Value l1aObject;\n  l1aObject[\"key1\"] = 0;\n  Json::Value l1bObject;\n  l1bObject[\"key1\"] = 10;\n  Json::Value l2aObject;\n  l2aObject[\"key1\"] = 0;\n  l2aObject[\"key2\"] = 0;\n  Json::Value l2bObject;\n  l2bObject[\"key1\"] = 10;\n  l2bObject[\"key2\"] = 0;\n  JSONTEST_ASSERT_PRED(checkIsLess(emptyObject, l1aObject));\n  JSONTEST_ASSERT_PRED(checkIsLess(l1aObject, l1bObject));\n  JSONTEST_ASSERT_PRED(checkIsLess(l1bObject, l2aObject));\n  JSONTEST_ASSERT_PRED(checkIsLess(l2aObject, l2bObject));\n  JSONTEST_ASSERT_PRED(checkIsEqual(emptyObject, Json::Value(emptyObject)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l1aObject, Json::Value(l1aObject)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l1bObject, Json::Value(l1bObject)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l2aObject, Json::Value(l2aObject)));\n  JSONTEST_ASSERT_PRED(checkIsEqual(l2bObject, Json::Value(l2bObject)));\n  {\n    Json::Value aObject;\n    aObject[\"a\"] = 10;\n    Json::Value bObject;\n    bObject[\"b\"] = 0;\n    Json::Value cObject;\n    cObject[\"c\"] = 20;\n    cObject[\"f\"] = 15;\n    Json::Value dObject;\n    dObject[\"d\"] = -2;\n    dObject[\"e\"] = 10;\n    JSONTEST_ASSERT_PRED(checkIsLess(aObject, bObject));\n    JSONTEST_ASSERT_PRED(checkIsLess(bObject, cObject));\n    JSONTEST_ASSERT_PRED(checkIsLess(cObject, dObject));\n    JSONTEST_ASSERT_PRED(checkIsEqual(aObject, Json::Value(aObject)));\n    JSONTEST_ASSERT_PRED(checkIsEqual(bObject, Json::Value(bObject)));\n    JSONTEST_ASSERT_PRED(checkIsEqual(cObject, Json::Value(cObject)));\n    JSONTEST_ASSERT_PRED(checkIsEqual(dObject, Json::Value(dObject)));\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, compareType) {\n  // object of different type are ordered according to their type\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(), Json::Value(1)));\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(1), Json::Value(1u)));\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(1u), Json::Value(1.0)));\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(1.0), Json::Value(\"a\")));\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(\"a\"), Json::Value(true)));\n  JSONTEST_ASSERT_PRED(\n      checkIsLess(Json::Value(true), Json::Value(Json::arrayValue)));\n  JSONTEST_ASSERT_PRED(checkIsLess(Json::Value(Json::arrayValue),\n                                   Json::Value(Json::objectValue)));\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, CopyObject) {\n  Json::Value arrayVal;\n  arrayVal.append(\"val1\");\n  arrayVal.append(\"val2\");\n  arrayVal.append(\"val3\");\n  Json::Value stringVal(\"string value\");\n  Json::Value copy1, copy2;\n  {\n    Json::Value arrayCopy, stringCopy;\n    arrayCopy.copy(arrayVal);\n    stringCopy.copy(stringVal);\n    JSONTEST_ASSERT_PRED(checkIsEqual(arrayCopy, arrayVal));\n    JSONTEST_ASSERT_PRED(checkIsEqual(stringCopy, stringVal));\n    arrayCopy.append(\"val4\");\n    JSONTEST_ASSERT(arrayCopy.size() == 4);\n    arrayVal.append(\"new4\");\n    arrayVal.append(\"new5\");\n    JSONTEST_ASSERT(arrayVal.size() == 5);\n    JSONTEST_ASSERT(!(arrayCopy == arrayVal));\n    stringCopy = \"another string\";\n    JSONTEST_ASSERT(!(stringCopy == stringVal));\n    copy1.copy(arrayCopy);\n    copy2.copy(stringCopy);\n  }\n  JSONTEST_ASSERT(arrayVal.size() == 5);\n  JSONTEST_ASSERT(stringVal == \"string value\");\n  JSONTEST_ASSERT(copy1.size() == 4);\n  JSONTEST_ASSERT(copy2 == \"another string\");\n  copy1.copy(stringVal);\n  JSONTEST_ASSERT(copy1 == \"string value\");\n  copy2.copy(arrayVal);\n  JSONTEST_ASSERT(copy2.size() == 5);\n  {\n    Json::Value srcObject, objectCopy, otherObject;\n    srcObject[\"key0\"] = 10;\n    objectCopy.copy(srcObject);\n    JSONTEST_ASSERT(srcObject[\"key0\"] == 10);\n    JSONTEST_ASSERT(objectCopy[\"key0\"] == 10);\n    JSONTEST_ASSERT(srcObject.getMemberNames().size() == 1);\n    JSONTEST_ASSERT(objectCopy.getMemberNames().size() == 1);\n    otherObject[\"key1\"] = 15;\n    otherObject[\"key2\"] = 16;\n    JSONTEST_ASSERT(otherObject.getMemberNames().size() == 2);\n    objectCopy.copy(otherObject);\n    JSONTEST_ASSERT(objectCopy[\"key1\"] == 15);\n    JSONTEST_ASSERT(objectCopy[\"key2\"] == 16);\n    JSONTEST_ASSERT(objectCopy.getMemberNames().size() == 2);\n    otherObject[\"key1\"] = 20;\n    JSONTEST_ASSERT(objectCopy[\"key1\"] == 15);\n  }\n}\n\nvoid ValueTest::checkIsLess(const Json::Value& x, const Json::Value& y) {\n  JSONTEST_ASSERT(x < y);\n  JSONTEST_ASSERT(y > x);\n  JSONTEST_ASSERT(x <= y);\n  JSONTEST_ASSERT(y >= x);\n  JSONTEST_ASSERT(!(x == y));\n  JSONTEST_ASSERT(!(y == x));\n  JSONTEST_ASSERT(!(x >= y));\n  JSONTEST_ASSERT(!(y <= x));\n  JSONTEST_ASSERT(!(x > y));\n  JSONTEST_ASSERT(!(y < x));\n  JSONTEST_ASSERT(x.compare(y) < 0);\n  JSONTEST_ASSERT(y.compare(x) >= 0);\n}\n\nvoid ValueTest::checkIsEqual(const Json::Value& x, const Json::Value& y) {\n  JSONTEST_ASSERT(x == y);\n  JSONTEST_ASSERT(y == x);\n  JSONTEST_ASSERT(x <= y);\n  JSONTEST_ASSERT(y <= x);\n  JSONTEST_ASSERT(x >= y);\n  JSONTEST_ASSERT(y >= x);\n  JSONTEST_ASSERT(!(x < y));\n  JSONTEST_ASSERT(!(y < x));\n  JSONTEST_ASSERT(!(x > y));\n  JSONTEST_ASSERT(!(y > x));\n  JSONTEST_ASSERT(x.compare(y) == 0);\n  JSONTEST_ASSERT(y.compare(x) == 0);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, typeChecksThrowExceptions) {\n#if JSON_USE_EXCEPTION\n\n  Json::Value intVal(1);\n  Json::Value strVal(\"Test\");\n  Json::Value objVal(Json::objectValue);\n  Json::Value arrVal(Json::arrayValue);\n\n  JSONTEST_ASSERT_THROWS(intVal[\"test\"]);\n  JSONTEST_ASSERT_THROWS(strVal[\"test\"]);\n  JSONTEST_ASSERT_THROWS(arrVal[\"test\"]);\n\n  JSONTEST_ASSERT_THROWS(intVal.removeMember(\"test\"));\n  JSONTEST_ASSERT_THROWS(strVal.removeMember(\"test\"));\n  JSONTEST_ASSERT_THROWS(arrVal.removeMember(\"test\"));\n\n  JSONTEST_ASSERT_THROWS(intVal.getMemberNames());\n  JSONTEST_ASSERT_THROWS(strVal.getMemberNames());\n  JSONTEST_ASSERT_THROWS(arrVal.getMemberNames());\n\n  JSONTEST_ASSERT_THROWS(intVal[0]);\n  JSONTEST_ASSERT_THROWS(objVal[0]);\n  JSONTEST_ASSERT_THROWS(strVal[0]);\n\n  JSONTEST_ASSERT_THROWS(intVal.clear());\n\n  JSONTEST_ASSERT_THROWS(intVal.resize(1));\n  JSONTEST_ASSERT_THROWS(strVal.resize(1));\n  JSONTEST_ASSERT_THROWS(objVal.resize(1));\n\n  JSONTEST_ASSERT_THROWS(intVal.asCString());\n\n  JSONTEST_ASSERT_THROWS(objVal.asString());\n  JSONTEST_ASSERT_THROWS(arrVal.asString());\n\n  JSONTEST_ASSERT_THROWS(strVal.asInt());\n  JSONTEST_ASSERT_THROWS(objVal.asInt());\n  JSONTEST_ASSERT_THROWS(arrVal.asInt());\n\n  JSONTEST_ASSERT_THROWS(strVal.asUInt());\n  JSONTEST_ASSERT_THROWS(objVal.asUInt());\n  JSONTEST_ASSERT_THROWS(arrVal.asUInt());\n\n  JSONTEST_ASSERT_THROWS(strVal.asInt64());\n  JSONTEST_ASSERT_THROWS(objVal.asInt64());\n  JSONTEST_ASSERT_THROWS(arrVal.asInt64());\n\n  JSONTEST_ASSERT_THROWS(strVal.asUInt64());\n  JSONTEST_ASSERT_THROWS(objVal.asUInt64());\n  JSONTEST_ASSERT_THROWS(arrVal.asUInt64());\n\n  JSONTEST_ASSERT_THROWS(strVal.asDouble());\n  JSONTEST_ASSERT_THROWS(objVal.asDouble());\n  JSONTEST_ASSERT_THROWS(arrVal.asDouble());\n\n  JSONTEST_ASSERT_THROWS(strVal.asFloat());\n  JSONTEST_ASSERT_THROWS(objVal.asFloat());\n  JSONTEST_ASSERT_THROWS(arrVal.asFloat());\n\n  JSONTEST_ASSERT_THROWS(strVal.asBool());\n  JSONTEST_ASSERT_THROWS(objVal.asBool());\n  JSONTEST_ASSERT_THROWS(arrVal.asBool());\n\n#endif // JSON_USE_EXCEPTION\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, offsetAccessors) {\n  Json::Value x;\n  JSONTEST_ASSERT(x.getOffsetStart() == 0);\n  JSONTEST_ASSERT(x.getOffsetLimit() == 0);\n  x.setOffsetStart(10);\n  x.setOffsetLimit(20);\n  JSONTEST_ASSERT(x.getOffsetStart() == 10);\n  JSONTEST_ASSERT(x.getOffsetLimit() == 20);\n  Json::Value y(x);\n  JSONTEST_ASSERT(y.getOffsetStart() == 10);\n  JSONTEST_ASSERT(y.getOffsetLimit() == 20);\n  Json::Value z;\n  z.swap(y);\n  JSONTEST_ASSERT(z.getOffsetStart() == 10);\n  JSONTEST_ASSERT(z.getOffsetLimit() == 20);\n  JSONTEST_ASSERT(y.getOffsetStart() == 0);\n  JSONTEST_ASSERT(y.getOffsetLimit() == 0);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, StaticString) {\n  char mutant[] = \"hello\";\n  Json::StaticString ss(mutant);\n  Json::String regular(mutant);\n  mutant[1] = 'a';\n  JSONTEST_ASSERT_STRING_EQUAL(\"hallo\", ss.c_str());\n  JSONTEST_ASSERT_STRING_EQUAL(\"hello\", regular.c_str());\n  {\n    Json::Value root;\n    root[\"top\"] = ss;\n    JSONTEST_ASSERT_STRING_EQUAL(\"hallo\", root[\"top\"].asString());\n    mutant[1] = 'u';\n    JSONTEST_ASSERT_STRING_EQUAL(\"hullo\", root[\"top\"].asString());\n  }\n  {\n    Json::Value root;\n    root[\"top\"] = regular;\n    JSONTEST_ASSERT_STRING_EQUAL(\"hello\", root[\"top\"].asString());\n    mutant[1] = 'u';\n    JSONTEST_ASSERT_STRING_EQUAL(\"hello\", root[\"top\"].asString());\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, WideString) {\n  // https://github.com/open-source-parsers/jsoncpp/issues/756\n  const std::string uni = u8\"\\u5f0f\\uff0c\\u8fdb\"; // \"式，进\"\n  std::string styled;\n  {\n    Json::Value v;\n    v[\"abc\"] = uni;\n    styled = v.toStyledString();\n  }\n  Json::Value root;\n  {\n    JSONCPP_STRING errs;\n    std::istringstream iss(styled);\n    bool ok = parseFromStream(Json::CharReaderBuilder(), iss, &root, &errs);\n    JSONTEST_ASSERT(ok);\n    if (!ok) {\n      std::cerr << \"errs: \" << errs << std::endl;\n    }\n  }\n  JSONTEST_ASSERT_STRING_EQUAL(root[\"abc\"].asString(), uni);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, CommentBefore) {\n  Json::Value val; // fill val\n  val.setComment(Json::String(\"// this comment should appear before\"),\n                 Json::commentBefore);\n  Json::StreamWriterBuilder wbuilder;\n  wbuilder.settings_[\"commentStyle\"] = \"All\";\n  {\n    char const expected[] = \"// this comment should appear before\\nnull\";\n    Json::String result = Json::writeString(wbuilder, val);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n    Json::String res2 = val.toStyledString();\n    Json::String exp2 = \"\\n\";\n    exp2 += expected;\n    exp2 += \"\\n\";\n    JSONTEST_ASSERT_STRING_EQUAL(exp2, res2);\n  }\n  Json::Value other = \"hello\";\n  val.swapPayload(other);\n  {\n    char const expected[] = \"// this comment should appear before\\n\\\"hello\\\"\";\n    Json::String result = Json::writeString(wbuilder, val);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n    Json::String res2 = val.toStyledString();\n    Json::String exp2 = \"\\n\";\n    exp2 += expected;\n    exp2 += \"\\n\";\n    JSONTEST_ASSERT_STRING_EQUAL(exp2, res2);\n    JSONTEST_ASSERT_STRING_EQUAL(\"null\\n\", other.toStyledString());\n  }\n  val = \"hello\";\n  // val.setComment(\"// this comment should appear before\",\n  // Json::CommentPlacement::commentBefore); Assignment over-writes comments.\n  {\n    char const expected[] = \"\\\"hello\\\"\";\n    Json::String result = Json::writeString(wbuilder, val);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n    Json::String res2 = val.toStyledString();\n    Json::String exp2;\n    exp2 += expected;\n    exp2 += \"\\n\";\n    JSONTEST_ASSERT_STRING_EQUAL(exp2, res2);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, zeroes) {\n  char const cstr[] = \"h\\0i\";\n  Json::String binary(cstr, sizeof(cstr)); // include trailing 0\n  JSONTEST_ASSERT_EQUAL(4U, binary.length());\n  Json::StreamWriterBuilder b;\n  {\n    Json::Value root;\n    root = binary;\n    JSONTEST_ASSERT_STRING_EQUAL(binary, root.asString());\n  }\n  {\n    char const top[] = \"top\";\n    Json::Value root;\n    root[top] = binary;\n    JSONTEST_ASSERT_STRING_EQUAL(binary, root[top].asString());\n    Json::Value removed;\n    bool did;\n    did = root.removeMember(top, top + sizeof(top) - 1U, &removed);\n    JSONTEST_ASSERT(did);\n    JSONTEST_ASSERT_STRING_EQUAL(binary, removed.asString());\n    did = root.removeMember(top, top + sizeof(top) - 1U, &removed);\n    JSONTEST_ASSERT(!did);\n    JSONTEST_ASSERT_STRING_EQUAL(binary, removed.asString()); // still\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, zeroesInKeys) {\n  char const cstr[] = \"h\\0i\";\n  Json::String binary(cstr, sizeof(cstr)); // include trailing 0\n  JSONTEST_ASSERT_EQUAL(4U, binary.length());\n  {\n    Json::Value root;\n    root[binary] = \"there\";\n    JSONTEST_ASSERT_STRING_EQUAL(\"there\", root[binary].asString());\n    JSONTEST_ASSERT(!root.isMember(\"h\"));\n    JSONTEST_ASSERT(root.isMember(binary));\n    JSONTEST_ASSERT_STRING_EQUAL(\n        \"there\", root.get(binary, Json::Value::nullSingleton()).asString());\n    Json::Value removed;\n    bool did;\n    did = root.removeMember(binary.data(), binary.data() + binary.length(),\n                            &removed);\n    JSONTEST_ASSERT(did);\n    JSONTEST_ASSERT_STRING_EQUAL(\"there\", removed.asString());\n    did = root.removeMember(binary.data(), binary.data() + binary.length(),\n                            &removed);\n    JSONTEST_ASSERT(!did);\n    JSONTEST_ASSERT_STRING_EQUAL(\"there\", removed.asString()); // still\n    JSONTEST_ASSERT(!root.isMember(binary));\n    JSONTEST_ASSERT_STRING_EQUAL(\n        \"\", root.get(binary, Json::Value::nullSingleton()).asString());\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, specialFloats) {\n  Json::StreamWriterBuilder b;\n  b.settings_[\"useSpecialFloats\"] = true;\n\n  Json::Value v = std::numeric_limits<double>::quiet_NaN();\n  Json::String expected = \"NaN\";\n  Json::String result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  v = std::numeric_limits<double>::infinity();\n  expected = \"Infinity\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  v = -std::numeric_limits<double>::infinity();\n  expected = \"-Infinity\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(ValueTest, precision) {\n  Json::StreamWriterBuilder b;\n  b.settings_[\"precision\"] = 5;\n\n  Json::Value v = 100.0 / 3;\n  Json::String expected = \"33.333\";\n  Json::String result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  v = 0.25000000;\n  expected = \"0.25\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  v = 0.2563456;\n  expected = \"0.25635\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 1;\n  expected = \"0.3\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 17;\n  v = 1234857476305.256345694873740545068;\n  expected = \"1234857476305.2563\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 24;\n  v = 0.256345694873740545068;\n  expected = \"0.25634569487374054\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 5;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 0.256345694873740545068;\n  expected = \"0.25635\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 1;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 0.256345694873740545068;\n  expected = \"0.3\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 0;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 123.56345694873740545068;\n  expected = \"124\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 1;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 1230.001;\n  expected = \"1230.0\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 0;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 1230.001;\n  expected = \"1230\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 0;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 1231.5;\n  expected = \"1232\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n\n  b.settings_[\"precision\"] = 10;\n  b.settings_[\"precisionType\"] = \"decimal\";\n  v = 0.23300000;\n  expected = \"0.233\";\n  result = Json::writeString(b, v);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\nJSONTEST_FIXTURE_LOCAL(ValueTest, searchValueByPath) {\n  Json::Value root, subroot;\n  root[\"property1\"][0] = 0;\n  root[\"property1\"][1] = 1;\n  subroot[\"object\"] = \"object\";\n  root[\"property2\"] = subroot;\n\n  const Json::Value defaultValue(\"error\");\n  Json::FastWriter writer;\n\n  {\n    const Json::String expected(\"{\"\n                                \"\\\"property1\\\":[0,1],\"\n                                \"\\\"property2\\\":{\\\"object\\\":\\\"object\\\"}\"\n                                \"}\\n\");\n    Json::String outcome = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, outcome);\n\n    // Array member exists.\n    const Json::Path path1(\".property1.[%]\", 1);\n    Json::Value result = path1.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::Value(1), result);\n    result = path1.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(Json::Value(1), result);\n\n    // Array member does not exist.\n    const Json::Path path2(\".property1.[2]\");\n    result = path2.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, result);\n    result = path2.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(defaultValue, result);\n\n    // Access array path form error\n    const Json::Path path3(\".property1.0\");\n    result = path3.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, result);\n    result = path3.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(defaultValue, result);\n\n    // Object member exists.\n    const Json::Path path4(\".property2.%\", \"object\");\n    result = path4.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::Value(\"object\"), result);\n    result = path4.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(Json::Value(\"object\"), result);\n\n    // Object member does not exist.\n    const Json::Path path5(\".property2.hello\");\n    result = path5.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, result);\n    result = path5.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(defaultValue, result);\n\n    // Access object path form error\n    const Json::Path path6(\".property2.[0]\");\n    result = path5.resolve(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, result);\n    result = path6.resolve(root, defaultValue);\n    JSONTEST_ASSERT_EQUAL(defaultValue, result);\n\n    // resolve will not change the value\n    outcome = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, outcome);\n  }\n  {\n    const Json::String expected(\"{\"\n                                \"\\\"property1\\\":[0,1,null],\"\n                                \"\\\"property2\\\":{\"\n                                \"\\\"hello\\\":null,\"\n                                \"\\\"object\\\":\\\"object\\\"}}\\n\");\n    Json::Path path1(\".property1.[%]\", 2);\n    Json::Value& value1 = path1.make(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, value1);\n\n    Json::Path path2(\".property2.%\", \"hello\");\n    Json::Value& value2 = path2.make(root);\n    JSONTEST_ASSERT_EQUAL(Json::nullValue, value2);\n\n    // make will change the value\n    const Json::String outcome = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, outcome);\n  }\n}\nstruct FastWriterTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, dropNullPlaceholders) {\n  Json::FastWriter writer;\n  Json::Value nullValue;\n  JSONTEST_ASSERT(writer.write(nullValue) == \"null\\n\");\n\n  writer.dropNullPlaceholders();\n  JSONTEST_ASSERT(writer.write(nullValue) == \"\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, enableYAMLCompatibility) {\n  Json::FastWriter writer;\n  Json::Value root;\n  root[\"hello\"] = \"world\";\n\n  JSONTEST_ASSERT(writer.write(root) == \"{\\\"hello\\\":\\\"world\\\"}\\n\");\n\n  writer.enableYAMLCompatibility();\n  JSONTEST_ASSERT(writer.write(root) == \"{\\\"hello\\\": \\\"world\\\"}\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, omitEndingLineFeed) {\n  Json::FastWriter writer;\n  Json::Value nullValue;\n\n  JSONTEST_ASSERT(writer.write(nullValue) == \"null\\n\");\n\n  writer.omitEndingLineFeed();\n  JSONTEST_ASSERT(writer.write(nullValue) == \"null\");\n}\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, writeNumericValue) {\n  Json::FastWriter writer;\n  const Json::String expected(\"{\"\n                              \"\\\"emptyValue\\\":null,\"\n                              \"\\\"false\\\":false,\"\n                              \"\\\"null\\\":\\\"null\\\",\"\n                              \"\\\"number\\\":-6200000000000000.0,\"\n                              \"\\\"real\\\":1.256,\"\n                              \"\\\"uintValue\\\":17\"\n                              \"}\\n\");\n  Json::Value root;\n  root[\"emptyValue\"] = Json::nullValue;\n  root[\"false\"] = false;\n  root[\"null\"] = \"null\";\n  root[\"number\"] = -6.2e+15;\n  root[\"real\"] = 1.256;\n  root[\"uintValue\"] = Json::Value(17U);\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, writeArrays) {\n  Json::FastWriter writer;\n  const Json::String expected(\"{\"\n                              \"\\\"property1\\\":[\\\"value1\\\",\\\"value2\\\"],\"\n                              \"\\\"property2\\\":[]\"\n                              \"}\\n\");\n  Json::Value root;\n  root[\"property1\"][0] = \"value1\";\n  root[\"property1\"][1] = \"value2\";\n  root[\"property2\"] = Json::arrayValue;\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(FastWriterTest, writeNestedObjects) {\n  Json::FastWriter writer;\n  const Json::String expected(\"{\"\n                              \"\\\"object1\\\":{\"\n                              \"\\\"bool\\\":true,\"\n                              \"\\\"nested\\\":123\"\n                              \"},\"\n                              \"\\\"object2\\\":{}\"\n                              \"}\\n\");\n  Json::Value root, child;\n  child[\"nested\"] = 123;\n  child[\"bool\"] = true;\n  root[\"object1\"] = child;\n  root[\"object2\"] = Json::objectValue;\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nstruct StyledWriterTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(StyledWriterTest, writeNumericValue) {\n  Json::StyledWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"   \\\"emptyValue\\\" : null,\\n\"\n                              \"   \\\"false\\\" : false,\\n\"\n                              \"   \\\"null\\\" : \\\"null\\\",\\n\"\n                              \"   \\\"number\\\" : -6200000000000000.0,\\n\"\n                              \"   \\\"real\\\" : 1.256,\\n\"\n                              \"   \\\"uintValue\\\" : 17\\n\"\n                              \"}\\n\");\n  Json::Value root;\n  root[\"emptyValue\"] = Json::nullValue;\n  root[\"false\"] = false;\n  root[\"null\"] = \"null\";\n  root[\"number\"] = -6.2e+15;\n  root[\"real\"] = 1.256;\n  root[\"uintValue\"] = Json::Value(17U);\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledWriterTest, writeArrays) {\n  Json::StyledWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"   \\\"property1\\\" : [ \\\"value1\\\", \\\"value2\\\" ],\\n\"\n                              \"   \\\"property2\\\" : []\\n\"\n                              \"}\\n\");\n  Json::Value root;\n  root[\"property1\"][0] = \"value1\";\n  root[\"property1\"][1] = \"value2\";\n  root[\"property2\"] = Json::arrayValue;\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledWriterTest, writeNestedObjects) {\n  Json::StyledWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"   \\\"object1\\\" : {\\n\"\n                              \"      \\\"bool\\\" : true,\\n\"\n                              \"      \\\"nested\\\" : 123\\n\"\n                              \"   },\\n\"\n                              \"   \\\"object2\\\" : {}\\n\"\n                              \"}\\n\");\n  Json::Value root, child;\n  child[\"nested\"] = 123;\n  child[\"bool\"] = true;\n  root[\"object1\"] = child;\n  root[\"object2\"] = Json::objectValue;\n\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledWriterTest, multiLineArray) {\n  Json::StyledWriter writer;\n  {\n    // Array member has more than 20 print effect rendering lines\n    const Json::String expected(\"[\\n   \"\n                                \"0,\\n   1,\\n   2,\\n   \"\n                                \"3,\\n   4,\\n   5,\\n   \"\n                                \"6,\\n   7,\\n   8,\\n   \"\n                                \"9,\\n   10,\\n   11,\\n   \"\n                                \"12,\\n   13,\\n   14,\\n   \"\n                                \"15,\\n   16,\\n   17,\\n   \"\n                                \"18,\\n   19,\\n   20\\n]\\n\");\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 21; i++)\n      root[i] = i;\n    const Json::String result = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    // Array members do not exceed 21 print effects to render a single line\n    const Json::String expected(\"[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]\\n\");\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 10; i++)\n      root[i] = i;\n    const Json::String result = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledWriterTest, writeValueWithComment) {\n  Json::StyledWriter writer;\n  {\n    const Json::String expected(\"\\n//commentBeforeValue\\n\\\"hello\\\"\\n\");\n    Json::Value root = \"hello\";\n    root.setComment(Json::String(\"//commentBeforeValue\"), Json::commentBefore);\n    const Json::String result = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    const Json::String expected(\"\\\"hello\\\" //commentAfterValueOnSameLine\\n\");\n    Json::Value root = \"hello\";\n    root.setComment(Json::String(\"//commentAfterValueOnSameLine\"),\n                    Json::commentAfterOnSameLine);\n    const Json::String result = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    const Json::String expected(\"\\\"hello\\\"\\n//commentAfter\\n\\n\");\n    Json::Value root = \"hello\";\n    root.setComment(Json::String(\"//commentAfter\"), Json::commentAfter);\n    const Json::String result = writer.write(root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n}\n\nstruct StyledStreamWriterTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, writeNumericValue) {\n  Json::StyledStreamWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"emptyValue\\\" : null,\\n\"\n                              \"\\t\\\"false\\\" : false,\\n\"\n                              \"\\t\\\"null\\\" : \\\"null\\\",\\n\"\n                              \"\\t\\\"number\\\" : -6200000000000000.0,\\n\"\n                              \"\\t\\\"real\\\" : 1.256,\\n\"\n                              \"\\t\\\"uintValue\\\" : 17\\n\"\n                              \"}\\n\");\n\n  Json::Value root;\n  root[\"emptyValue\"] = Json::nullValue;\n  root[\"false\"] = false;\n  root[\"null\"] = \"null\";\n  root[\"number\"] = -6.2e+15; // big float number\n  root[\"real\"] = 1.256;      // float number\n  root[\"uintValue\"] = Json::Value(17U);\n\n  Json::OStringStream sout;\n  writer.write(sout, root);\n  const Json::String result = sout.str();\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, writeArrays) {\n  Json::StyledStreamWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"property1\\\" : [ \\\"value1\\\", \\\"value2\\\" ],\\n\"\n                              \"\\t\\\"property2\\\" : []\\n\"\n                              \"}\\n\");\n  Json::Value root;\n  root[\"property1\"][0] = \"value1\";\n  root[\"property1\"][1] = \"value2\";\n  root[\"property2\"] = Json::arrayValue;\n\n  Json::OStringStream sout;\n  writer.write(sout, root);\n  const Json::String result = sout.str();\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, writeNestedObjects) {\n  Json::StyledStreamWriter writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"object1\\\" : \\n\"\n                              \"\\t\"\n                              \"{\\n\"\n                              \"\\t\\t\\\"bool\\\" : true,\\n\"\n                              \"\\t\\t\\\"nested\\\" : 123\\n\"\n                              \"\\t},\\n\"\n                              \"\\t\\\"object2\\\" : {}\\n\"\n                              \"}\\n\");\n  Json::Value root, child;\n  child[\"nested\"] = 123;\n  child[\"bool\"] = true;\n  root[\"object1\"] = child;\n  root[\"object2\"] = Json::objectValue;\n\n  Json::OStringStream sout;\n  writer.write(sout, root);\n  const Json::String result = sout.str();\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, multiLineArray) {\n  {\n    // Array member has more than 20 print effect rendering lines\n    const Json::String expected(\"[\\n\\t0,\"\n                                \"\\n\\t1,\"\n                                \"\\n\\t2,\"\n                                \"\\n\\t3,\"\n                                \"\\n\\t4,\"\n                                \"\\n\\t5,\"\n                                \"\\n\\t6,\"\n                                \"\\n\\t7,\"\n                                \"\\n\\t8,\"\n                                \"\\n\\t9,\"\n                                \"\\n\\t10,\"\n                                \"\\n\\t11,\"\n                                \"\\n\\t12,\"\n                                \"\\n\\t13,\"\n                                \"\\n\\t14,\"\n                                \"\\n\\t15,\"\n                                \"\\n\\t16,\"\n                                \"\\n\\t17,\"\n                                \"\\n\\t18,\"\n                                \"\\n\\t19,\"\n                                \"\\n\\t20\\n]\\n\");\n    Json::StyledStreamWriter writer;\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 21; i++)\n      root[i] = i;\n    Json::OStringStream sout;\n    writer.write(sout, root);\n    const Json::String result = sout.str();\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    Json::StyledStreamWriter writer;\n    // Array members do not exceed 21 print effects to render a single line\n    const Json::String expected(\"[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]\\n\");\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 10; i++)\n      root[i] = i;\n    Json::OStringStream sout;\n    writer.write(sout, root);\n    const Json::String result = sout.str();\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(StyledStreamWriterTest, writeValueWithComment) {\n  Json::StyledStreamWriter writer(\"\\t\");\n  {\n    const Json::String expected(\"//commentBeforeValue\\n\\\"hello\\\"\\n\");\n    Json::Value root = \"hello\";\n    Json::OStringStream sout;\n    root.setComment(Json::String(\"//commentBeforeValue\"), Json::commentBefore);\n    writer.write(sout, root);\n    const Json::String result = sout.str();\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    const Json::String expected(\"\\\"hello\\\" //commentAfterValueOnSameLine\\n\");\n    Json::Value root = \"hello\";\n    Json::OStringStream sout;\n    root.setComment(Json::String(\"//commentAfterValueOnSameLine\"),\n                    Json::commentAfterOnSameLine);\n    writer.write(sout, root);\n    const Json::String result = sout.str();\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    const Json::String expected(\"\\\"hello\\\"\\n//commentAfter\\n\");\n    Json::Value root = \"hello\";\n    Json::OStringStream sout;\n    root.setComment(Json::String(\"//commentAfter\"), Json::commentAfter);\n    writer.write(sout, root);\n    const Json::String result = sout.str();\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n}\n\nstruct StreamWriterTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, writeNumericValue) {\n  Json::StreamWriterBuilder writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"emptyValue\\\" : null,\\n\"\n                              \"\\t\\\"false\\\" : false,\\n\"\n                              \"\\t\\\"null\\\" : \\\"null\\\",\\n\"\n                              \"\\t\\\"number\\\" : -6200000000000000.0,\\n\"\n                              \"\\t\\\"real\\\" : 1.256,\\n\"\n                              \"\\t\\\"uintValue\\\" : 17\\n\"\n                              \"}\");\n  Json::Value root;\n  root[\"emptyValue\"] = Json::nullValue;\n  root[\"false\"] = false;\n  root[\"null\"] = \"null\";\n  root[\"number\"] = -6.2e+15;\n  root[\"real\"] = 1.256;\n  root[\"uintValue\"] = Json::Value(17U);\n\n  const Json::String result = Json::writeString(writer, root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, writeArrays) {\n  Json::StreamWriterBuilder writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"property1\\\" : \\n\"\n                              \"\\t[\\n\"\n                              \"\\t\\t\\\"value1\\\",\\n\"\n                              \"\\t\\t\\\"value2\\\"\\n\"\n                              \"\\t],\\n\"\n                              \"\\t\\\"property2\\\" : []\\n\"\n                              \"}\");\n\n  Json::Value root;\n  root[\"property1\"][0] = \"value1\";\n  root[\"property1\"][1] = \"value2\";\n  root[\"property2\"] = Json::arrayValue;\n\n  const Json::String result = Json::writeString(writer, root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, writeNestedObjects) {\n  Json::StreamWriterBuilder writer;\n  const Json::String expected(\"{\\n\"\n                              \"\\t\\\"object1\\\" : \\n\"\n                              \"\\t{\\n\"\n                              \"\\t\\t\\\"bool\\\" : true,\\n\"\n                              \"\\t\\t\\\"nested\\\" : 123\\n\"\n                              \"\\t},\\n\"\n                              \"\\t\\\"object2\\\" : {}\\n\"\n                              \"}\");\n\n  Json::Value root, child;\n  child[\"nested\"] = 123;\n  child[\"bool\"] = true;\n  root[\"object1\"] = child;\n  root[\"object2\"] = Json::objectValue;\n\n  const Json::String result = Json::writeString(writer, root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, multiLineArray) {\n  Json::StreamWriterBuilder wb;\n  wb.settings_[\"commentStyle\"] = \"None\";\n  {\n    // When wb.settings_[\"commentStyle\"] = \"None\", the effect of\n    // printing multiple lines will be displayed when there are\n    // more than 20 array members.\n    const Json::String expected(\"[\\n\\t0,\"\n                                \"\\n\\t1,\"\n                                \"\\n\\t2,\"\n                                \"\\n\\t3,\"\n                                \"\\n\\t4,\"\n                                \"\\n\\t5,\"\n                                \"\\n\\t6,\"\n                                \"\\n\\t7,\"\n                                \"\\n\\t8,\"\n                                \"\\n\\t9,\"\n                                \"\\n\\t10,\"\n                                \"\\n\\t11,\"\n                                \"\\n\\t12,\"\n                                \"\\n\\t13,\"\n                                \"\\n\\t14,\"\n                                \"\\n\\t15,\"\n                                \"\\n\\t16,\"\n                                \"\\n\\t17,\"\n                                \"\\n\\t18,\"\n                                \"\\n\\t19,\"\n                                \"\\n\\t20\\n]\");\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 21; i++)\n      root[i] = i;\n    const Json::String result = Json::writeString(wb, root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n  {\n    // Array members do not exceed 21 print effects to render a single line\n    const Json::String expected(\"[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]\");\n    Json::Value root;\n    for (Json::ArrayIndex i = 0; i < 10; i++)\n      root[i] = i;\n    const Json::String result = Json::writeString(wb, root);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, dropNullPlaceholders) {\n  Json::StreamWriterBuilder b;\n  Json::Value nullValue;\n  b.settings_[\"dropNullPlaceholders\"] = false;\n  JSONTEST_ASSERT(Json::writeString(b, nullValue) == \"null\");\n  b.settings_[\"dropNullPlaceholders\"] = true;\n  JSONTEST_ASSERT(Json::writeString(b, nullValue).empty());\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, enableYAMLCompatibility) {\n  Json::StreamWriterBuilder b;\n  Json::Value root;\n  root[\"hello\"] = \"world\";\n\n  b.settings_[\"indentation\"] = \"\";\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\\"hello\\\":\\\"world\\\"}\");\n\n  b.settings_[\"enableYAMLCompatibility\"] = true;\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\\"hello\\\": \\\"world\\\"}\");\n\n  b.settings_[\"enableYAMLCompatibility\"] = false;\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\\"hello\\\":\\\"world\\\"}\");\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, indentation) {\n  Json::StreamWriterBuilder b;\n  Json::Value root;\n  root[\"hello\"] = \"world\";\n\n  b.settings_[\"indentation\"] = \"\";\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\\"hello\\\":\\\"world\\\"}\");\n\n  b.settings_[\"indentation\"] = \"\\t\";\n  JSONTEST_ASSERT(Json::writeString(b, root) ==\n                  \"{\\n\\t\\\"hello\\\" : \\\"world\\\"\\n}\");\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, writeZeroes) {\n  Json::String binary(\"hi\", 3); // include trailing 0\n  JSONTEST_ASSERT_EQUAL(3, binary.length());\n  Json::String expected(R\"(\"hi\\u0000\")\"); // unicoded zero\n  Json::StreamWriterBuilder b;\n  {\n    Json::Value root;\n    root = binary;\n    JSONTEST_ASSERT_STRING_EQUAL(binary, root.asString());\n    Json::String out = Json::writeString(b, root);\n    JSONTEST_ASSERT_EQUAL(expected.size(), out.size());\n    JSONTEST_ASSERT_STRING_EQUAL(expected, out);\n  }\n  {\n    Json::Value root;\n    root[\"top\"] = binary;\n    JSONTEST_ASSERT_STRING_EQUAL(binary, root[\"top\"].asString());\n    Json::String out = Json::writeString(b, root[\"top\"]);\n    JSONTEST_ASSERT_STRING_EQUAL(expected, out);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, unicode) {\n  // Create a Json value containing UTF-8 string with some chars that need\n  // escape (tab,newline).\n  Json::Value root;\n  root[\"test\"] = \"\\t\\n\\xF0\\x91\\xA2\\xA1\\x3D\\xC4\\xB3\\xF0\\x9B\\x84\\x9B\\xEF\\xBD\\xA7\";\n\n  Json::StreamWriterBuilder b;\n\n  // Default settings - should be unicode escaped.\n  JSONTEST_ASSERT(Json::writeString(b, root) ==\n                  \"{\\n\\t\\\"test\\\" : \"\n                  \"\\\"\\\\t\\\\n\\\\ud806\\\\udca1=\\\\u0133\\\\ud82c\\\\udd1b\\\\uff67\\\"\\n}\");\n\n  b.settings_[\"emitUTF8\"] = true;\n\n  // Should not be unicode escaped.\n  JSONTEST_ASSERT(\n      Json::writeString(b, root) ==\n      \"{\\n\\t\\\"test\\\" : \"\n      \"\\\"\\\\t\\\\n\\xF0\\x91\\xA2\\xA1=\\xC4\\xB3\\xF0\\x9B\\x84\\x9B\\xEF\\xBD\\xA7\\\"\\n}\");\n\n  b.settings_[\"emitUTF8\"] = false;\n\n  // Should be unicode escaped.\n  JSONTEST_ASSERT(Json::writeString(b, root) ==\n                  \"{\\n\\t\\\"test\\\" : \"\n                  \"\\\"\\\\t\\\\n\\\\ud806\\\\udca1=\\\\u0133\\\\ud82c\\\\udd1b\\\\uff67\\\"\\n}\");\n}\n\n// Control chars should be escaped regardless of UTF-8 input encoding.\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, escapeControlCharacters) {\n  auto uEscape = [](unsigned ch) {\n    static const char h[] = \"0123456789abcdef\";\n    std::string r = \"\\\\u\";\n    r += h[(ch >> (3 * 4)) & 0xf];\n    r += h[(ch >> (2 * 4)) & 0xf];\n    r += h[(ch >> (1 * 4)) & 0xf];\n    r += h[(ch >> (0 * 4)) & 0xf];\n    return r;\n  };\n  auto shortEscape = [](unsigned ch) -> const char* {\n    switch (ch) {\n    case '\\\"':\n      return \"\\\\\\\"\";\n    case '\\\\':\n      return \"\\\\\\\\\";\n    case '\\b':\n      return \"\\\\b\";\n    case '\\f':\n      return \"\\\\f\";\n    case '\\n':\n      return \"\\\\n\";\n    case '\\r':\n      return \"\\\\r\";\n    case '\\t':\n      return \"\\\\t\";\n    default:\n      return nullptr;\n    }\n  };\n\n  Json::StreamWriterBuilder b;\n\n  for (bool emitUTF8 : {true, false}) {\n    b.settings_[\"emitUTF8\"] = emitUTF8;\n\n    for (unsigned i = 0; i != 0x100; ++i) {\n      if (!emitUTF8 && i >= 0x80)\n        break; // The algorithm would try to parse UTF-8, so stop here.\n\n      std::string raw({static_cast<char>(i)});\n      std::string esc = raw;\n      if (i < 0x20)\n        esc = uEscape(i);\n      if (const char* shEsc = shortEscape(i))\n        esc = shEsc;\n\n      // std::cout << \"emit=\" << emitUTF8 << \", i=\" << std::hex << i << std::dec\n      //          << std::endl;\n\n      Json::Value root;\n      root[\"test\"] = raw;\n      JSONTEST_ASSERT_STRING_EQUAL(\n          std::string(\"{\\n\\t\\\"test\\\" : \\\"\").append(esc).append(\"\\\"\\n}\"),\n          Json::writeString(b, root))\n          << \", emit=\" << emitUTF8 << \", i=\" << i << \", raw=\\\"\" << raw << \"\\\"\"\n          << \", esc=\\\"\" << esc << \"\\\"\";\n    }\n  }\n}\n\n#ifdef _WIN32\nJSONTEST_FIXTURE_LOCAL(StreamWriterTest, escapeTabCharacterWindows) {\n  // Get the current locale before changing it\n  std::string currentLocale = setlocale(LC_ALL, NULL);\n  setlocale(LC_ALL, \"English_United States.1252\");\n\n  Json::Value root;\n  root[\"test\"] = \"\\tTabTesting\\t\";\n\n  Json::StreamWriterBuilder b;\n\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\n\\t\\\"test\\\" : \"\n                                                \"\\\"\\\\tTabTesting\\\\t\\\"\\n}\");\n\n  b.settings_[\"emitUTF8\"] = true;\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\n\\t\\\"test\\\" : \"\n                                                \"\\\"\\\\tTabTesting\\\\t\\\"\\n}\");\n\n  b.settings_[\"emitUTF8\"] = false;\n  JSONTEST_ASSERT(Json::writeString(b, root) == \"{\\n\\t\\\"test\\\" : \"\n                                                \"\\\"\\\\tTabTesting\\\\t\\\"\\n}\");\n\n  // Restore the locale\n  if (!currentLocale.empty())\n    setlocale(LC_ALL, currentLocale.c_str());\n}\n#endif\n\nstruct ReaderTest : JsonTest::TestCase {\n  void setStrictMode() {\n    reader = std::unique_ptr<Json::Reader>(\n        new Json::Reader(Json::Features{}.strictMode()));\n  }\n\n  void setFeatures(Json::Features& features) {\n    reader = std::unique_ptr<Json::Reader>(new Json::Reader(features));\n  }\n\n  void checkStructuredErrors(\n      const std::vector<Json::Reader::StructuredError>& actual,\n      const std::vector<Json::Reader::StructuredError>& expected) {\n    JSONTEST_ASSERT_EQUAL(expected.size(), actual.size());\n    for (size_t i = 0; i < actual.size(); ++i) {\n      const auto& a = actual[i];\n      const auto& e = expected[i];\n      JSONTEST_ASSERT_EQUAL(e.offset_start, a.offset_start) << i;\n      JSONTEST_ASSERT_EQUAL(e.offset_limit, a.offset_limit) << i;\n      JSONTEST_ASSERT_EQUAL(e.message, a.message) << i;\n    }\n  }\n\n  template <typename Input> void checkParse(Input&& input) {\n    JSONTEST_ASSERT(reader->parse(input, root));\n  }\n\n  template <typename Input>\n  void\n  checkParse(Input&& input,\n             const std::vector<Json::Reader::StructuredError>& structured) {\n    JSONTEST_ASSERT(!reader->parse(input, root));\n    checkStructuredErrors(reader->getStructuredErrors(), structured);\n  }\n\n  template <typename Input>\n  void checkParse(Input&& input,\n                  const std::vector<Json::Reader::StructuredError>& structured,\n                  const std::string& formatted) {\n    checkParse(input, structured);\n    JSONTEST_ASSERT_EQUAL(formatted, reader->getFormattedErrorMessages());\n  }\n\n  std::unique_ptr<Json::Reader> reader{new Json::Reader()};\n  Json::Value root;\n};\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseWithNoErrors) {\n  checkParse(R\"({ \"property\" : \"value\" })\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseObject) {\n  checkParse(R\"({\"property\"})\",\n             {{11, 12, \"Missing ':' after object member name\"}},\n             \"* Line 1, Column 12\\n  Missing ':' after object member name\\n\");\n  checkParse(\n      R\"({\"property\" : \"value\" )\",\n      {{22, 22, \"Missing ',' or '}' in object declaration\"}},\n      \"* Line 1, Column 23\\n  Missing ',' or '}' in object declaration\\n\");\n  checkParse(R\"({\"property\" : \"value\", )\",\n             {{23, 23, \"Missing '}' or object member name\"}},\n             \"* Line 1, Column 24\\n  Missing '}' or object member name\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseArray) {\n  checkParse(\n      R\"([ \"value\" )\", {{10, 10, \"Missing ',' or ']' in array declaration\"}},\n      \"* Line 1, Column 11\\n  Missing ',' or ']' in array declaration\\n\");\n  checkParse(\n      R\"([ \"value1\" \"value2\" ] )\",\n      {{11, 19, \"Missing ',' or ']' in array declaration\"}},\n      \"* Line 1, Column 12\\n  Missing ',' or ']' in array declaration\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseString) {\n  checkParse(R\"([ \"\\u8a2a\" ])\");\n  checkParse(\n      R\"([ \"\\ud801\" ])\",\n      {{2, 10,\n        \"additional six characters expected to parse unicode surrogate \"\n        \"pair.\"}},\n      \"* Line 1, Column 3\\n\"\n      \"  additional six characters expected to parse unicode surrogate pair.\\n\"\n      \"See Line 1, Column 10 for detail.\\n\");\n  checkParse(R\"([ \"\\ud801\\d1234\" ])\",\n             {{2, 16,\n               \"expecting another \\\\u token to begin the \"\n               \"second half of a unicode surrogate pair\"}},\n             \"* Line 1, Column 3\\n\"\n             \"  expecting another \\\\u token to begin the \"\n             \"second half of a unicode surrogate pair\\n\"\n             \"See Line 1, Column 12 for detail.\\n\");\n  checkParse(R\"([ \"\\ua3t@\" ])\",\n             {{2, 10,\n               \"Bad unicode escape sequence in string: \"\n               \"hexadecimal digit expected.\"}},\n             \"* Line 1, Column 3\\n\"\n             \"  Bad unicode escape sequence in string: \"\n             \"hexadecimal digit expected.\\n\"\n             \"See Line 1, Column 9 for detail.\\n\");\n  checkParse(\n      R\"([ \"\\ua3t\" ])\",\n      {{2, 9, \"Bad unicode escape sequence in string: four digits expected.\"}},\n      \"* Line 1, Column 3\\n\"\n      \"  Bad unicode escape sequence in string: four digits expected.\\n\"\n      \"See Line 1, Column 6 for detail.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseComment) {\n  checkParse(\n      R\"({ /*commentBeforeValue*/ \"property\" : \"value\" }//commentAfterValue)\"\n      \"\\n\");\n  checkParse(\" true //comment1\\n//comment2\\r//comment3\\r\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, streamParseWithNoErrors) {\n  std::string styled = R\"({ \"property\" : \"value\" })\";\n  std::istringstream iss(styled);\n  checkParse(iss);\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseWithNoErrorsTestingOffsets) {\n  checkParse(R\"({)\"\n             R\"( \"property\" : [\"value\", \"value2\"],)\"\n             R\"( \"obj\" : { \"nested\" : -6.2e+15, \"bool\" : true},)\"\n             R\"( \"null\" : null,)\"\n             R\"( \"false\" : false)\"\n             R\"( })\");\n  auto checkOffsets = [&](const Json::Value& v, int start, int limit) {\n    JSONTEST_ASSERT_EQUAL(start, v.getOffsetStart());\n    JSONTEST_ASSERT_EQUAL(limit, v.getOffsetLimit());\n  };\n  checkOffsets(root, 0, 115);\n  checkOffsets(root[\"property\"], 15, 34);\n  checkOffsets(root[\"property\"][0], 16, 23);\n  checkOffsets(root[\"property\"][1], 25, 33);\n  checkOffsets(root[\"obj\"], 44, 81);\n  checkOffsets(root[\"obj\"][\"nested\"], 57, 65);\n  checkOffsets(root[\"obj\"][\"bool\"], 76, 80);\n  checkOffsets(root[\"null\"], 92, 96);\n  checkOffsets(root[\"false\"], 108, 113);\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseWithOneError) {\n  checkParse(R\"({ \"property\" :: \"value\" })\",\n             {{14, 15, \"Syntax error: value, object or array expected.\"}},\n             \"* Line 1, Column 15\\n  Syntax error: value, object or array \"\n             \"expected.\\n\");\n  checkParse(\"s\", {{0, 1, \"Syntax error: value, object or array expected.\"}},\n             \"* Line 1, Column 1\\n  Syntax error: value, object or array \"\n             \"expected.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseSpecialFloat) {\n  checkParse(R\"({ \"a\" : Infi })\",\n             {{8, 9, \"Syntax error: value, object or array expected.\"}},\n             \"* Line 1, Column 9\\n  Syntax error: value, object or array \"\n             \"expected.\\n\");\n  checkParse(R\"({ \"a\" : Infiniaa })\",\n             {{8, 9, \"Syntax error: value, object or array expected.\"}},\n             \"* Line 1, Column 9\\n  Syntax error: value, object or array \"\n             \"expected.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, strictModeParseNumber) {\n  setStrictMode();\n  checkParse(\n      \"123\",\n      {{0, 3,\n        \"A valid JSON document must be either an array or an object value.\"}},\n      \"* Line 1, Column 1\\n\"\n      \"  A valid JSON document must be either an array or an object value.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseChineseWithOneError) {\n  checkParse(R\"({ \"pr)\"\n             u8\"\\u4f50\\u85e4\" // 佐藤\n             R\"(erty\" :: \"value\" })\",\n             {{18, 19, \"Syntax error: value, object or array expected.\"}},\n             \"* Line 1, Column 19\\n  Syntax error: value, object or array \"\n             \"expected.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, parseWithDetailError) {\n  checkParse(R\"({ \"property\" : \"v\\alue\" })\",\n             {{15, 23, \"Bad escape sequence in string\"}},\n             \"* Line 1, Column 16\\n\"\n             \"  Bad escape sequence in string\\n\"\n             \"See Line 1, Column 20 for detail.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, pushErrorTest) {\n  checkParse(R\"({ \"AUTHOR\" : 123 })\");\n  if (!root[\"AUTHOR\"].isString()) {\n    JSONTEST_ASSERT(\n        reader->pushError(root[\"AUTHOR\"], \"AUTHOR must be a string\"));\n  }\n  JSONTEST_ASSERT_STRING_EQUAL(reader->getFormattedErrorMessages(),\n                               \"* Line 1, Column 14\\n\"\n                               \"  AUTHOR must be a string\\n\");\n\n  checkParse(R\"({ \"AUTHOR\" : 123 })\");\n  if (!root[\"AUTHOR\"].isString()) {\n    JSONTEST_ASSERT(reader->pushError(root[\"AUTHOR\"], \"AUTHOR must be a string\",\n                                      root[\"AUTHOR\"]));\n  }\n  JSONTEST_ASSERT_STRING_EQUAL(reader->getFormattedErrorMessages(),\n                               \"* Line 1, Column 14\\n\"\n                               \"  AUTHOR must be a string\\n\"\n                               \"See Line 1, Column 14 for detail.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, allowNumericKeysTest) {\n  Json::Features features;\n  features.allowNumericKeys_ = true;\n  setFeatures(features);\n  checkParse(R\"({ 123 : \"abc\" })\");\n}\n\nJSONTEST_FIXTURE_LOCAL(ReaderTest, allowDroppedNullPlaceholders) {\n  Json::Features features;\n  features.allowDroppedNullPlaceholders_ = true;\n  setFeatures(features);\n  checkParse(R\"([1,,2])\");\n  JSONTEST_ASSERT_EQUAL(3, root.size());\n  JSONTEST_ASSERT_EQUAL(1, root[0].asInt());\n  JSONTEST_ASSERT(root[1].isNull());\n  JSONTEST_ASSERT_EQUAL(2, root[2].asInt());\n}\n\nstruct CharReaderTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseWithNoErrors) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  char const doc[] = R\"({ \"property\" : \"value\" })\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT(errs.empty());\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseWithNoErrorsTestingOffsets) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  char const doc[] = \"{ \\\"property\\\" : [\\\"value\\\", \\\"value2\\\"], \\\"obj\\\" : \"\n                     \"{ \\\"nested\\\" : -6.2e+15, \\\"num\\\" : +123, \\\"bool\\\" : \"\n                     \"true}, \\\"null\\\" : null, \\\"false\\\" : false }\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT(errs.empty());\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseNumber) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  {\n    // if intvalue > threshold, treat the number as a double.\n    // 21 digits\n    char const doc[] = \"[111111111111111111111]\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(1.1111111111111111e+020, root[0]);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseString) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = \"[\\\"\\\"]\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(\"\", root[0]);\n  }\n  {\n    char const doc[] = R\"([\"\\u8A2a\"])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(u8\"\\u8A2a\", root[0].asString()); // \"訪\"\n  }\n  {\n    char const doc[] = R\"([ \"\\uD801\" ])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 3\\n\"\n                            \"  additional six characters expected to \"\n                            \"parse unicode surrogate pair.\\n\"\n                            \"See Line 1, Column 10 for detail.\\n\");\n  }\n  {\n    char const doc[] = R\"([ \"\\uD801\\d1234\" ])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 3\\n\"\n                            \"  expecting another \\\\u token to begin the \"\n                            \"second half of a unicode surrogate pair\\n\"\n                            \"See Line 1, Column 12 for detail.\\n\");\n  }\n  {\n    char const doc[] = R\"([ \"\\ua3t@\" ])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 3\\n\"\n                            \"  Bad unicode escape sequence in string: \"\n                            \"hexadecimal digit expected.\\n\"\n                            \"See Line 1, Column 9 for detail.\\n\");\n  }\n  {\n    char const doc[] = R\"([ \"\\ua3t\" ])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(\n        errs ==\n        \"* Line 1, Column 3\\n\"\n        \"  Bad unicode escape sequence in string: four digits expected.\\n\"\n        \"See Line 1, Column 6 for detail.\\n\");\n  }\n  {\n    b.settings_[\"allowSingleQuotes\"] = true;\n    CharReaderPtr charreader(b.newCharReader());\n    char const doc[] = R\"({'a': 'x\\ty', \"b\":'x\\\\y'})\";\n    bool ok = charreader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_STRING_EQUAL(\"x\\ty\", root[\"a\"].asString());\n    JSONTEST_ASSERT_STRING_EQUAL(\"x\\\\y\", root[\"b\"].asString());\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseComment) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = \"//comment1\\n { //comment2\\n \\\"property\\\" :\"\n                       \" \\\"value\\\" //comment3\\n } //comment4\\n\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n  }\n  {\n    char const doc[] = \"{ \\\"property\\\" //comment\\n : \\\"value\\\" }\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 14\\n\"\n                            \"  Missing ':' after object member name\\n\");\n  }\n  {\n    char const doc[] = \"//comment1\\n [ //comment2\\n \\\"value\\\" //comment3\\n,\"\n                       \" //comment4\\n true //comment5\\n ] //comment6\\n\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(\"value\", root[0]);\n    JSONTEST_ASSERT_EQUAL(true, root[1]);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseObjectWithErrors) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = R\"({ \"property\" : \"value\" )\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 24\\n\"\n                            \"  Missing ',' or '}' in object declaration\\n\");\n    JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n  }\n  {\n    char const doc[] = R\"({ \"property\" : \"value\" ,)\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 25\\n\"\n                            \"  Missing '}' or object member name\\n\");\n    JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseArrayWithErrors) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = \"[ \\\"value\\\" \";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 11\\n\"\n                            \"  Missing ',' or ']' in array declaration\\n\");\n    JSONTEST_ASSERT_EQUAL(\"value\", root[0]);\n  }\n  {\n    char const doc[] = R\"([ \"value1\" \"value2\" ])\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT(errs == \"* Line 1, Column 12\\n\"\n                            \"  Missing ',' or ']' in array declaration\\n\");\n    JSONTEST_ASSERT_EQUAL(\"value1\", root[0]);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseWithOneError) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  char const doc[] = R\"({ \"property\" :: \"value\" })\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(!ok);\n  JSONTEST_ASSERT(errs ==\n                  \"* Line 1, Column 15\\n  Syntax error: value, object or array \"\n                  \"expected.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseChineseWithOneError) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  char const doc[] = \"{ \\\"pr佐藤erty\\\" :: \\\"value\\\" }\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(!ok);\n  JSONTEST_ASSERT(errs ==\n                  \"* Line 1, Column 19\\n  Syntax error: value, object or array \"\n                  \"expected.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseWithDetailError) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  Json::Value root;\n  char const doc[] = R\"({ \"property\" : \"v\\alue\" })\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(!ok);\n  JSONTEST_ASSERT(errs ==\n                  \"* Line 1, Column 16\\n  Bad escape sequence in string\\nSee \"\n                  \"Line 1, Column 20 for detail.\\n\");\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, parseWithStackLimit) {\n#if JSON_USE_EXCEPTION\n\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] = R\"({ \"property\" : \"value\" })\";\n  {\n    b.settings_[\"stackLimit\"] = 2;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n  }\n  {\n    b.settings_[\"stackLimit\"] = 1;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    JSONTEST_ASSERT_THROWS(\n        reader->parse(doc, doc + std::strlen(doc), &root, &errs));\n  }\n  // Default stack limit should reject deeply nested input (regression test for\n  // stack exhaustion from fuzz input like [[[[...]]]])\n  {\n    Json::CharReaderBuilder defaultBuilder;\n    Json::String nested(300, '[');\n    CharReaderPtr reader(defaultBuilder.newCharReader());\n    Json::String errs;\n    JSONTEST_ASSERT_THROWS(reader->parse(\n        nested.data(), nested.data() + nested.size(), &root, &errs));\n  }\n\n#endif // JSON_USE_EXCEPTION\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderTest, testOperator) {\n  const std::string styled = R\"({ \"property\" : \"value\" })\";\n  std::istringstream iss(styled);\n  Json::Value root;\n  iss >> root;\n  JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n}\n\nstruct CharReaderStrictModeTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderStrictModeTest, dupKeys) {\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] =\n      R\"({ \"property\" : \"value\", \"key\" : \"val1\", \"key\" : \"val2\" })\";\n  {\n    b.strictMode(&b.settings_);\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"* Line 1, Column 41\\n\"\n                                 \"  Duplicate key: 'key'\\n\",\n                                 errs);\n    JSONTEST_ASSERT_EQUAL(\"val1\", root[\"key\"]); // so far\n  }\n}\nstruct CharReaderFailIfExtraTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, issue164) {\n  // This is interpreted as a string value followed by a colon.\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] = R\"( \"property\" : \"value\" })\";\n  {\n    b.settings_[\"failIfExtra\"] = false;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT(errs.empty());\n    JSONTEST_ASSERT_EQUAL(\"property\", root);\n  }\n  {\n    b.settings_[\"failIfExtra\"] = true;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"* Line 1, Column 13\\n\"\n                                 \"  Extra non-whitespace after JSON value.\\n\",\n                                 errs);\n    JSONTEST_ASSERT_EQUAL(\"property\", root);\n  }\n  {\n    b.strictMode(&b.settings_);\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"* Line 1, Column 13\\n\"\n                                 \"  Extra non-whitespace after JSON value.\\n\",\n                                 errs);\n    JSONTEST_ASSERT_EQUAL(\"property\", root);\n  }\n  {\n    b.strictMode(&b.settings_);\n    b.settings_[\"failIfExtra\"] = false;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\n        \"* Line 1, Column 1\\n\"\n        \"  A valid JSON document must be either an array or an object value.\\n\",\n        errs);\n    JSONTEST_ASSERT_EQUAL(\"property\", root);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, issue107) {\n  // This is interpreted as an int value followed by a colon.\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] = \"1:2:3\";\n  b.settings_[\"failIfExtra\"] = true;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(!ok);\n  JSONTEST_ASSERT_STRING_EQUAL(\"* Line 1, Column 2\\n\"\n                               \"  Extra non-whitespace after JSON value.\\n\",\n                               errs);\n  JSONTEST_ASSERT_EQUAL(1, root.asInt());\n}\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, commentAfterObject) {\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  {\n    char const doc[] = \"{ \\\"property\\\" : \\\"value\\\" } //trailing\\n//comment\\n\";\n    b.settings_[\"failIfExtra\"] = true;\n    CharReaderPtr reader(b.newCharReader());\n    Json::String errs;\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(\"value\", root[\"property\"]);\n  }\n}\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, commentAfterArray) {\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] = \"[ \\\"property\\\" , \\\"value\\\" ] //trailing\\n//comment\\n\";\n  b.settings_[\"failIfExtra\"] = true;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n  JSONTEST_ASSERT_EQUAL(\"value\", root[1u]);\n}\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, commentAfterBool) {\n  Json::CharReaderBuilder b;\n  Json::Value root;\n  char const doc[] = \" true /*trailing\\ncomment*/\";\n  b.settings_[\"failIfExtra\"] = true;\n  CharReaderPtr reader(b.newCharReader());\n  Json::String errs;\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n  JSONTEST_ASSERT_EQUAL(true, root.asBool());\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderFailIfExtraTest, parseComment) {\n  Json::CharReaderBuilder b;\n  b.settings_[\"failIfExtra\"] = true;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = \" true //comment1\\n//comment2\\r//comment3\\r\\n\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(true, root.asBool());\n  }\n  {\n    char const doc[] = \" true //com\\rment\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"* Line 2, Column 1\\n\"\n                                 \"  Extra non-whitespace after JSON value.\\n\",\n                                 errs);\n    JSONTEST_ASSERT_EQUAL(true, root.asBool());\n  }\n  {\n    char const doc[] = \" true //com\\nment\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"* Line 2, Column 1\\n\"\n                                 \"  Extra non-whitespace after JSON value.\\n\",\n                                 errs);\n    JSONTEST_ASSERT_EQUAL(true, root.asBool());\n  }\n}\n\nstruct CharReaderAllowDropNullTest : JsonTest::TestCase {\n  using Value = Json::Value;\n  using ValueCheck = std::function<void(const Value&)>;\n\n  Value nullValue = Value{Json::nullValue};\n  Value emptyArray = Value{Json::arrayValue};\n\n  ValueCheck checkEq(const Value& v) {\n    return [=](const Value& root) { JSONTEST_ASSERT_EQUAL(root, v); };\n  }\n\n  static ValueCheck objGetAnd(std::string idx, ValueCheck f) {\n    return [=](const Value& root) { f(root.get(idx, true)); };\n  }\n\n  static ValueCheck arrGetAnd(int idx, ValueCheck f) {\n    return [=](const Value& root) { f(root[idx]); };\n  }\n};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowDropNullTest, issue178) {\n  struct TestSpec {\n    int line;\n    std::string doc;\n    size_t rootSize;\n    ValueCheck onRoot;\n  };\n  const TestSpec specs[] = {\n      {__LINE__, R\"({\"a\":,\"b\":true})\", 2, objGetAnd(\"a\", checkEq(nullValue))},\n      {__LINE__, R\"({\"a\":,\"b\":true})\", 2, objGetAnd(\"a\", checkEq(nullValue))},\n      {__LINE__, R\"({\"a\":})\", 1, objGetAnd(\"a\", checkEq(nullValue))},\n      {__LINE__, \"[]\", 0, checkEq(emptyArray)},\n      {__LINE__, \"[null]\", 1, nullptr},\n      {__LINE__, \"[,]\", 2, nullptr},\n      {__LINE__, \"[,,,]\", 4, nullptr},\n      {__LINE__, \"[null,]\", 2, nullptr},\n      {__LINE__, \"[,null]\", 2, nullptr},\n      {__LINE__, \"[,,]\", 3, nullptr},\n      {__LINE__, \"[null,,]\", 3, nullptr},\n      {__LINE__, \"[,null,]\", 3, nullptr},\n      {__LINE__, \"[,,null]\", 3, nullptr},\n      {__LINE__, \"[[],,,]\", 4, arrGetAnd(0, checkEq(emptyArray))},\n      {__LINE__, \"[,[],,]\", 4, arrGetAnd(1, checkEq(emptyArray))},\n      {__LINE__, \"[,,,[]]\", 4, arrGetAnd(3, checkEq(emptyArray))},\n  };\n  for (const auto& spec : specs) {\n    Json::CharReaderBuilder b;\n    b.settings_[\"allowDroppedNullPlaceholders\"] = true;\n    std::unique_ptr<Json::CharReader> reader(b.newCharReader());\n\n    Json::Value root;\n    Json::String errs;\n    bool ok = reader->parse(spec.doc.data(), spec.doc.data() + spec.doc.size(),\n                            &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(errs, \"\");\n    if (spec.onRoot) {\n      spec.onRoot(root);\n    }\n  }\n}\n\nstruct CharReaderAllowNumericKeysTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowNumericKeysTest, allowNumericKeys) {\n  Json::CharReaderBuilder b;\n  b.settings_[\"allowNumericKeys\"] = true;\n  Json::Value root;\n  Json::String errs;\n  CharReaderPtr reader(b.newCharReader());\n  char const doc[] = \"{15:true,-16:true,12.01:true}\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n  JSONTEST_ASSERT_EQUAL(3u, root.size());\n  JSONTEST_ASSERT_EQUAL(true, root.get(\"15\", false));\n  JSONTEST_ASSERT_EQUAL(true, root.get(\"-16\", false));\n  JSONTEST_ASSERT_EQUAL(true, root.get(\"12.01\", false));\n}\n\nstruct CharReaderAllowSingleQuotesTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowSingleQuotesTest, issue182) {\n  Json::CharReaderBuilder b;\n  b.settings_[\"allowSingleQuotes\"] = true;\n  Json::Value root;\n  Json::String errs;\n  CharReaderPtr reader(b.newCharReader());\n  {\n    char const doc[] = \"{'a':true,\\\"b\\\":true}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_EQUAL(true, root.get(\"a\", false));\n    JSONTEST_ASSERT_EQUAL(true, root.get(\"b\", false));\n  }\n  {\n    char const doc[] = \"{'a': 'x', \\\"b\\\":'y'}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_STRING_EQUAL(\"x\", root[\"a\"].asString());\n    JSONTEST_ASSERT_STRING_EQUAL(\"y\", root[\"b\"].asString());\n  }\n}\n\nstruct CharReaderAllowZeroesTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowZeroesTest, issue176) {\n  Json::CharReaderBuilder b;\n  b.settings_[\"allowSingleQuotes\"] = true;\n  Json::Value root;\n  Json::String errs;\n  CharReaderPtr reader(b.newCharReader());\n  {\n    char const doc[] = \"{'a':true,\\\"b\\\":true}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_EQUAL(true, root.get(\"a\", false));\n    JSONTEST_ASSERT_EQUAL(true, root.get(\"b\", false));\n  }\n  {\n    char const doc[] = \"{'a': 'x', \\\"b\\\":'y'}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_STRING_EQUAL(\"x\", root[\"a\"].asString());\n    JSONTEST_ASSERT_STRING_EQUAL(\"y\", root[\"b\"].asString());\n  }\n}\n\nstruct CharReaderAllowSpecialFloatsTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowSpecialFloatsTest, specialFloat) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  {\n    char const doc[] = \"{\\\"a\\\": NaN}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\n        \"* Line 1, Column 7\\n\"\n        \"  Syntax error: value, object or array expected.\\n\",\n        errs);\n  }\n  {\n    char const doc[] = \"{\\\"a\\\": Infinity}\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(!ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\n        \"* Line 1, Column 7\\n\"\n        \"  Syntax error: value, object or array expected.\\n\",\n        errs);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(CharReaderAllowSpecialFloatsTest, issue209) {\n  Json::CharReaderBuilder b;\n  b.settings_[\"allowSpecialFloats\"] = true;\n  Json::Value root;\n  Json::String errs;\n  CharReaderPtr reader(b.newCharReader());\n  {\n    char const doc[] = R\"({\"a\":NaN,\"b\":Infinity,\"c\":-Infinity,\"d\":+Infinity})\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(4u, root.size());\n    double n = root[\"a\"].asDouble();\n    JSONTEST_ASSERT(std::isnan(n));\n    JSONTEST_ASSERT_EQUAL(std::numeric_limits<double>::infinity(),\n                          root.get(\"b\", 0.0));\n    JSONTEST_ASSERT_EQUAL(-std::numeric_limits<double>::infinity(),\n                          root.get(\"c\", 0.0));\n    JSONTEST_ASSERT_EQUAL(std::numeric_limits<double>::infinity(),\n                          root.get(\"d\", 0.0));\n  }\n\n  struct TestData {\n    int line;\n    bool ok;\n    Json::String in;\n  };\n  const TestData test_data[] = {\n      {__LINE__, true, \"{\\\"a\\\":9}\"},          //\n      {__LINE__, false, \"{\\\"a\\\":0Infinity}\"}, //\n      {__LINE__, false, \"{\\\"a\\\":1Infinity}\"}, //\n      {__LINE__, false, \"{\\\"a\\\":9Infinity}\"}, //\n      {__LINE__, false, \"{\\\"a\\\":0nfinity}\"},  //\n      {__LINE__, false, \"{\\\"a\\\":1nfinity}\"},  //\n      {__LINE__, false, \"{\\\"a\\\":9nfinity}\"},  //\n      {__LINE__, false, \"{\\\"a\\\":nfinity}\"},   //\n      {__LINE__, false, \"{\\\"a\\\":.nfinity}\"},  //\n      {__LINE__, false, \"{\\\"a\\\":9nfinity}\"},  //\n      {__LINE__, false, \"{\\\"a\\\":-nfinity}\"},  //\n      {__LINE__, true, \"{\\\"a\\\":Infinity}\"},   //\n      {__LINE__, false, \"{\\\"a\\\":.Infinity}\"}, //\n      {__LINE__, false, \"{\\\"a\\\":_Infinity}\"}, //\n      {__LINE__, false, \"{\\\"a\\\":_nfinity}\"},  //\n      {__LINE__, true, \"{\\\"a\\\":-Infinity}\"},  //\n      {__LINE__, true, \"{\\\"a\\\":+Infinity}\"}   //\n  };\n  for (const auto& td : test_data) {\n    bool ok = reader->parse(&*td.in.begin(), &*td.in.begin() + td.in.size(),\n                            &root, &errs);\n    // clang-format off\n    JSONTEST_ASSERT(td.ok == ok) <<\n        \"line:\" << td.line << \"\\n  \" <<\n        \"expected: {ok:\" << td.ok << \", in:\\'\" << td.in << \"\\'}\\n \" <<\n        \"actual: {ok:\" << ok << \"}\\n\";\n    // clang-format on\n  }\n\n  {\n    char const doc[] = R\"({\"posInf\": +Infinity, \"NegInf\": -Infinity})\";\n    bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n    JSONTEST_ASSERT(ok);\n    JSONTEST_ASSERT_STRING_EQUAL(\"\", errs);\n    JSONTEST_ASSERT_EQUAL(2u, root.size());\n    JSONTEST_ASSERT_EQUAL(std::numeric_limits<double>::infinity(),\n                          root[\"posInf\"].asDouble());\n    JSONTEST_ASSERT_EQUAL(-std::numeric_limits<double>::infinity(),\n                          root[\"NegInf\"].asDouble());\n  }\n}\n\nstruct EscapeSequenceTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(EscapeSequenceTest, readerParseEscapeSequence) {\n  Json::Reader reader;\n  Json::Value root;\n  bool ok = reader.parse(\"[\\\"\\\\\\\"\\\",\\\"\\\\/\\\",\\\"\\\\\\\\\\\",\\\"\\\\b\\\",\"\n                         \"\\\"\\\\f\\\",\\\"\\\\n\\\",\\\"\\\\r\\\",\\\"\\\\t\\\",\"\n                         \"\\\"\\\\u0278\\\",\\\"\\\\ud852\\\\udf62\\\"]\\n\",\n                         root);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT(reader.getFormattedErrorMessages().empty());\n  JSONTEST_ASSERT(reader.getStructuredErrors().empty());\n}\n\nJSONTEST_FIXTURE_LOCAL(EscapeSequenceTest, charReaderParseEscapeSequence) {\n  Json::CharReaderBuilder b;\n  CharReaderPtr reader(b.newCharReader());\n  Json::Value root;\n  Json::String errs;\n  char const doc[] = \"[\\\"\\\\\\\"\\\",\\\"\\\\/\\\",\\\"\\\\\\\\\\\",\\\"\\\\b\\\",\"\n                     \"\\\"\\\\f\\\",\\\"\\\\n\\\",\\\"\\\\r\\\",\\\"\\\\t\\\",\"\n                     \"\\\"\\\\u0278\\\",\\\"\\\\ud852\\\\udf62\\\"]\";\n  bool ok = reader->parse(doc, doc + std::strlen(doc), &root, &errs);\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT(errs.empty());\n}\n\nJSONTEST_FIXTURE_LOCAL(EscapeSequenceTest, writeEscapeSequence) {\n  Json::FastWriter writer;\n  const Json::String expected(\"[\\\"\\\\\\\"\\\",\\\"\\\\\\\\\\\",\\\"\\\\b\\\",\"\n                              \"\\\"\\\\f\\\",\\\"\\\\n\\\",\\\"\\\\r\\\",\\\"\\\\t\\\",\"\n                              \"\\\"\\\\u0278\\\",\\\"\\\\ud852\\\\udf62\\\"]\\n\");\n  Json::Value root;\n  root[0] = \"\\\"\";\n  root[1] = \"\\\\\";\n  root[2] = \"\\b\";\n  root[3] = \"\\f\";\n  root[4] = \"\\n\";\n  root[5] = \"\\r\";\n  root[6] = \"\\t\";\n  root[7] = \"ɸ\";\n  root[8] = \"𤭢\";\n  const Json::String result = writer.write(root);\n  JSONTEST_ASSERT_STRING_EQUAL(expected, result);\n}\n\nstruct BuilderTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(BuilderTest, settings) {\n  {\n    Json::Value errs;\n    Json::CharReaderBuilder rb;\n    JSONTEST_ASSERT_EQUAL(false, rb.settings_.isMember(\"foo\"));\n    JSONTEST_ASSERT_EQUAL(true, rb.validate(&errs));\n    rb[\"foo\"] = \"bar\";\n    JSONTEST_ASSERT_EQUAL(true, rb.settings_.isMember(\"foo\"));\n    JSONTEST_ASSERT_EQUAL(false, rb.validate(&errs));\n  }\n  {\n    Json::Value errs;\n    Json::StreamWriterBuilder wb;\n    JSONTEST_ASSERT_EQUAL(false, wb.settings_.isMember(\"foo\"));\n    JSONTEST_ASSERT_EQUAL(true, wb.validate(&errs));\n    wb[\"foo\"] = \"bar\";\n    JSONTEST_ASSERT_EQUAL(true, wb.settings_.isMember(\"foo\"));\n    JSONTEST_ASSERT_EQUAL(false, wb.validate(&errs));\n  }\n}\n\nstruct BomTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(BomTest, skipBom) {\n  const std::string with_bom = \"\\xEF\\xBB\\xBF{\\\"key\\\" : \\\"value\\\"}\";\n  Json::Value root;\n  JSONCPP_STRING errs;\n  std::istringstream iss(with_bom);\n  bool ok = parseFromStream(Json::CharReaderBuilder(), iss, &root, &errs);\n  // The default behavior is to skip the BOM, so we can parse it normally.\n  JSONTEST_ASSERT(ok);\n  JSONTEST_ASSERT(errs.empty());\n  JSONTEST_ASSERT_STRING_EQUAL(root[\"key\"].asString(), \"value\");\n}\nJSONTEST_FIXTURE_LOCAL(BomTest, notSkipBom) {\n  const std::string with_bom = \"\\xEF\\xBB\\xBF{\\\"key\\\" : \\\"value\\\"}\";\n  Json::Value root;\n  JSONCPP_STRING errs;\n  std::istringstream iss(with_bom);\n  Json::CharReaderBuilder b;\n  b.settings_[\"skipBom\"] = false;\n  bool ok = parseFromStream(b, iss, &root, &errs);\n  // Detect the BOM, and failed on it.\n  JSONTEST_ASSERT(!ok);\n  JSONTEST_ASSERT(!errs.empty());\n}\n\nstruct IteratorTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, convert) {\n  Json::Value j;\n  const Json::Value& cj = j;\n  auto it = j.begin();\n  Json::Value::const_iterator cit;\n  cit = it;\n  JSONTEST_ASSERT(cit == cj.begin());\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, decrement) {\n  Json::Value json;\n  json[\"k1\"] = \"a\";\n  json[\"k2\"] = \"b\";\n  std::vector<std::string> values;\n  for (auto it = json.end(); it != json.begin();) {\n    --it;\n    values.push_back(it->asString());\n  }\n  JSONTEST_ASSERT((values == std::vector<std::string>{\"b\", \"a\"}));\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, reverseIterator) {\n  Json::Value json;\n  json[\"k1\"] = \"a\";\n  json[\"k2\"] = \"b\";\n  std::vector<std::string> values;\n  using Iter = decltype(json.begin());\n  auto re = std::reverse_iterator<Iter>(json.begin());\n  for (auto it = std::reverse_iterator<Iter>(json.end()); it != re; ++it) {\n    values.push_back(it->asString());\n  }\n  JSONTEST_ASSERT((values == std::vector<std::string>{\"b\", \"a\"}));\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, distance) {\n  {\n    Json::Value json;\n    json[\"k1\"] = \"a\";\n    json[\"k2\"] = \"b\";\n    int i = 0;\n    auto it = json.begin();\n    for (;; ++it, ++i) {\n      auto dist = it - json.begin();\n      JSONTEST_ASSERT_EQUAL(i, dist);\n      if (it == json.end())\n        break;\n    }\n  }\n  {\n    Json::Value empty;\n    JSONTEST_ASSERT_EQUAL(0, empty.end() - empty.end());\n    JSONTEST_ASSERT_EQUAL(0, empty.end() - empty.begin());\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, nullValues) {\n  {\n    Json::Value json;\n    auto end = json.end();\n    auto endCopy = end;\n    JSONTEST_ASSERT(endCopy == end);\n    endCopy = end;\n    JSONTEST_ASSERT(endCopy == end);\n  }\n  {\n    // Same test, now with const Value.\n    const Json::Value json;\n    auto end = json.end();\n    auto endCopy = end;\n    JSONTEST_ASSERT(endCopy == end);\n    endCopy = end;\n    JSONTEST_ASSERT(endCopy == end);\n  }\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, staticStringKey) {\n  Json::Value json;\n  json[Json::StaticString(\"k1\")] = \"a\";\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"k1\"), json.begin().key());\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, names) {\n  Json::Value json;\n  json[\"k1\"] = \"a\";\n  json[\"k2\"] = \"b\";\n  Json::ValueIterator it = json.begin();\n  JSONTEST_ASSERT(it != json.end());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"k1\"), it.key());\n  JSONTEST_ASSERT_STRING_EQUAL(\"k1\", it.name());\n  JSONTEST_ASSERT_STRING_EQUAL(\"k1\", it.memberName());\n  JSONTEST_ASSERT_EQUAL(-1, it.index());\n  ++it;\n  JSONTEST_ASSERT(it != json.end());\n  JSONTEST_ASSERT_EQUAL(Json::Value(\"k2\"), it.key());\n  JSONTEST_ASSERT_STRING_EQUAL(\"k2\", it.name());\n  JSONTEST_ASSERT_STRING_EQUAL(\"k2\", it.memberName());\n  JSONTEST_ASSERT_EQUAL(-1, it.index());\n  ++it;\n  JSONTEST_ASSERT(it == json.end());\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, indexes) {\n  Json::Value json;\n  json[0] = \"a\";\n  json[1] = \"b\";\n  Json::ValueIterator it = json.begin();\n  JSONTEST_ASSERT(it != json.end());\n  JSONTEST_ASSERT_EQUAL(Json::Value(Json::ArrayIndex(0)), it.key());\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", it.name());\n  JSONTEST_ASSERT_EQUAL(0, it.index());\n  ++it;\n  JSONTEST_ASSERT(it != json.end());\n  JSONTEST_ASSERT_EQUAL(Json::Value(Json::ArrayIndex(1)), it.key());\n  JSONTEST_ASSERT_STRING_EQUAL(\"\", it.name());\n  JSONTEST_ASSERT_EQUAL(1, it.index());\n  ++it;\n  JSONTEST_ASSERT(it == json.end());\n}\n\nJSONTEST_FIXTURE_LOCAL(IteratorTest, constness) {\n#if JSON_USE_EXCEPTION\n\n  Json::Value const v;\n  JSONTEST_ASSERT_THROWS(\n      Json::Value::iterator it(v.begin())); // Compile, but throw.\n\n  Json::Value value;\n\n  for (int i = 9; i < 12; ++i) {\n    Json::OStringStream out;\n    out << std::setw(2) << i;\n    Json::String str = out.str();\n    value[str] = str;\n  }\n\n  Json::OStringStream out;\n  // in old code, this will get a compile error\n  Json::Value::const_iterator iter = value.begin();\n  for (; iter != value.end(); ++iter) {\n    out << *iter << ',';\n  }\n  Json::String expected = R\"(\" 9\",\"10\",\"11\",)\";\n  JSONTEST_ASSERT_STRING_EQUAL(expected, out.str());\n\n#endif // JSON_USE_EXCEPTION\n}\n\nstruct RValueTest : JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(RValueTest, moveConstruction) {\n  Json::Value json;\n  json[\"key\"] = \"value\";\n  Json::Value moved = std::move(json);\n  JSONTEST_ASSERT(moved != json); // Possibly not nullValue; definitely not\n                                  // equal.\n  JSONTEST_ASSERT_EQUAL(Json::objectValue, moved.type());\n  JSONTEST_ASSERT_EQUAL(Json::stringValue, moved[\"key\"].type());\n}\n\nstruct FuzzTest : JsonTest::TestCase {};\n\n// Build and run the fuzz test without any fuzzer, so that it's guaranteed not\n// go out of date, even if it's never run as an actual fuzz test.\nJSONTEST_FIXTURE_LOCAL(FuzzTest, fuzzDoesntCrash) {\n  const std::string example = \"{}\";\n  JSONTEST_ASSERT_EQUAL(\n      0,\n      LLVMFuzzerTestOneInput(reinterpret_cast<const uint8_t*>(example.c_str()),\n                             example.size()));\n}\n\nstruct ParseWithStructuredErrorsTest : JsonTest::TestCase {\n  void testErrors(\n      const std::string& doc, bool success,\n      const std::vector<Json::CharReader::StructuredError>& expectedErrors) {\n    Json::CharReaderBuilder b;\n    CharReaderPtr reader(b.newCharReader());\n    Json::Value root;\n    JSONTEST_ASSERT_EQUAL(\n        reader->parse(doc.data(), doc.data() + doc.length(), &root, nullptr),\n        success);\n    auto actualErrors = reader->getStructuredErrors();\n    JSONTEST_ASSERT_EQUAL(expectedErrors.size(), actualErrors.size());\n    for (std::size_t i = 0; i < actualErrors.size(); i++) {\n      const auto& a = actualErrors[i];\n      const auto& e = expectedErrors[i];\n      JSONTEST_ASSERT_EQUAL(a.offset_start, e.offset_start);\n      JSONTEST_ASSERT_EQUAL(a.offset_limit, e.offset_limit);\n      JSONTEST_ASSERT_STRING_EQUAL(a.message, e.message);\n    }\n  }\n};\n\nJSONTEST_FIXTURE_LOCAL(ParseWithStructuredErrorsTest, success) {\n  testErrors(\"{}\", true, {});\n}\n\nJSONTEST_FIXTURE_LOCAL(ParseWithStructuredErrorsTest, singleError) {\n  testErrors(\"{ 1 : 2 }\", false, {{2, 3, \"Missing '}' or object member name\"}});\n}\n\nint main(int argc, const char* argv[]) {\n  JsonTest::Runner runner;\n\n  for (auto& local : local_) {\n    runner.add(local);\n  }\n\n  return runner.runCommandLine(argc, argv);\n}\n\nstruct MemberTemplateAs : JsonTest::TestCase {\n  template <typename T, typename F>\n  JsonTest::TestResult& EqEval(T v, F f) const {\n    const Json::Value j = v;\n    return JSONTEST_ASSERT_EQUAL(j.as<T>(), f(j));\n  }\n};\n\nJSONTEST_FIXTURE_LOCAL(MemberTemplateAs, BehavesSameAsNamedAs) {\n  const Json::Value jstr = \"hello world\";\n  JSONTEST_ASSERT_STRING_EQUAL(jstr.as<const char*>(), jstr.asCString());\n  JSONTEST_ASSERT_STRING_EQUAL(jstr.as<Json::String>(), jstr.asString());\n  EqEval(Json::Int(64), [](const Json::Value& j) { return j.asInt(); });\n  EqEval(Json::UInt(64), [](const Json::Value& j) { return j.asUInt(); });\n#if defined(JSON_HAS_INT64)\n  EqEval(Json::Int64(64), [](const Json::Value& j) { return j.asInt64(); });\n  EqEval(Json::UInt64(64), [](const Json::Value& j) { return j.asUInt64(); });\n#endif // if defined(JSON_HAS_INT64)\n  EqEval(Json::LargestInt(64),\n         [](const Json::Value& j) { return j.asLargestInt(); });\n  EqEval(Json::LargestUInt(64),\n         [](const Json::Value& j) { return j.asLargestUInt(); });\n\n  EqEval(69.69f, [](const Json::Value& j) { return j.asFloat(); });\n  EqEval(69.69, [](const Json::Value& j) { return j.asDouble(); });\n  EqEval(false, [](const Json::Value& j) { return j.asBool(); });\n  EqEval(true, [](const Json::Value& j) { return j.asBool(); });\n}\n\nclass MemberTemplateIs : public JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(MemberTemplateIs, BehavesSameAsNamedIs) {\n  const Json::Value values[] = {true, 142, 40.63, \"hello world\"};\n  for (const Json::Value& j : values) {\n    JSONTEST_ASSERT_EQUAL(j.is<bool>(), j.isBool());\n    JSONTEST_ASSERT_EQUAL(j.is<Json::Int>(), j.isInt());\n    JSONTEST_ASSERT_EQUAL(j.is<Json::Int64>(), j.isInt64());\n    JSONTEST_ASSERT_EQUAL(j.is<Json::UInt>(), j.isUInt());\n    JSONTEST_ASSERT_EQUAL(j.is<Json::UInt64>(), j.isUInt64());\n    JSONTEST_ASSERT_EQUAL(j.is<double>(), j.isDouble());\n    JSONTEST_ASSERT_EQUAL(j.is<Json::String>(), j.isString());\n  }\n}\n\nclass VersionTest : public JsonTest::TestCase {};\n\nJSONTEST_FIXTURE_LOCAL(VersionTest, VersionNumbersMatch) {\n  std::ostringstream vstr;\n  vstr << JSONCPP_VERSION_MAJOR << '.' << JSONCPP_VERSION_MINOR << '.'\n       << JSONCPP_VERSION_PATCH;\n  JSONTEST_ASSERT_EQUAL(vstr.str(), std::string(JSONCPP_VERSION_STRING));\n}\n\n#if defined(__GNUC__)\n#pragma GCC diagnostic pop\n#endif\n"
  },
  {
    "path": "test/BUILD.bazel",
    "content": "load(\"@rules_python//python:defs.bzl\", \"py_test\")\n\nfilegroup(\n    name = \"expected\",\n    srcs = glob(\n        [\n            \"data/**\",\n            \"jsonchecker/**\",\n        ],\n        exclude = [\"**/*.json\"],\n    ),\n)\n\n[py_test(\n    name = \"runjson_%s_test\" % \"_\".join(f.split(\"/\")),\n    srcs = [\"runjsontests.py\"],\n    args = [\n        \"--with-json-checker\",\n        \"$(location //src/jsontestrunner:jsontestrunner)\",\n        \"$(location :%s)\" % f,\n    ],\n    data = [\n        \":expected\",\n        \"//src/jsontestrunner\",\n        \":%s\" % f,\n    ],\n    main = \"runjsontests.py\",\n    tags = [\"no-sandbox\"],\n) for f in glob([\"**/*.json\"])]\n"
  },
  {
    "path": "test/cleantests.py",
    "content": "# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n\"\"\"Removes all files created during testing.\"\"\"\n\nimport glob\nimport os\n\npaths = []\nfor pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:\n    paths += glob.glob('data/' + pattern)\n\nfor path in paths:\n    os.unlink(path)\n"
  },
  {
    "path": "test/data/fail_invalid_quote.json",
    "content": "{'//this is bad JSON.'}"
  },
  {
    "path": "test/data/fail_strict_comment_01.json",
    "content": "{\n  \"a\": \"aaa\",\n  \"b\": \"bbb\" // comments not allowed in strict mode\n}\n"
  },
  {
    "path": "test/data/fail_strict_comment_02.json",
    "content": "{\n  \"a\": \"aaa\", // comments not allowed in strict mode\n  \"b\": \"bbb\"\n}\n"
  },
  {
    "path": "test/data/fail_strict_comment_03.json",
    "content": "{\n  \"array\" : [1, 2, 3 /* comments not allowed in strict mode */]\n}\n"
  },
  {
    "path": "test/data/fail_test_array_01.json",
    "content": "[ 1 2 3]\n"
  },
  {
    "path": "test/data/fail_test_array_02.json",
    "content": "[1,,]\n"
  },
  {
    "path": "test/data/fail_test_control_char_01.json",
    "content": "\"\u0001\""
  },
  {
    "path": "test/data/fail_test_object_01.json",
    "content": "{ \"count\" : 1234,, }\n"
  },
  {
    "path": "test/data/fail_test_object_02.json",
    "content": "{\"one\": 1 /* } */ { \"two\" : 2 }\n"
  },
  {
    "path": "test/data/fail_test_stack_limit.json",
    "content": "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]\n"
  },
  {
    "path": "test/data/legacy_test_array_01.expected",
    "content": ".=[]\n"
  },
  {
    "path": "test/data/legacy_test_array_01.json",
    "content": "[]\n"
  },
  {
    "path": "test/data/legacy_test_array_02.expected",
    "content": ".=[]\n.[0]=1\n"
  },
  {
    "path": "test/data/legacy_test_array_02.json",
    "content": "[1]\n"
  },
  {
    "path": "test/data/legacy_test_array_03.expected",
    "content": ".=[]\n.[0]=1\n.[1]=2\n.[2]=3\n.[3]=4\n.[4]=5\n"
  },
  {
    "path": "test/data/legacy_test_array_03.json",
    "content": "[ 1, 2 ,  3,4,5]\n"
  },
  {
    "path": "test/data/legacy_test_array_04.expected",
    "content": ".=[]\n.[0]=1\n.[1]=\"abc\"\n.[2]=12.3\n.[3]=-4\n"
  },
  {
    "path": "test/data/legacy_test_array_04.json",
    "content": "[1, \"abc\" , 12.3, -4]\n"
  },
  {
    "path": "test/data/legacy_test_array_05.expected",
    "content": ".=[]\n.[0]=1\n.[1]=2\n.[2]=3\n.[3]=4\n.[4]=5\n.[5]=6\n.[6]=7\n.[7]=8\n.[8]=9\n.[9]=10\n.[10]=11\n.[11]=12\n.[12]=13\n.[13]=14\n.[14]=15\n.[15]=16\n.[16]=17\n.[17]=18\n.[18]=19\n.[19]=20\n.[20]=21\n.[21]=22\n.[22]=23\n.[23]=24\n.[24]=25\n.[25]=26\n.[26]=27\n.[27]=28\n.[28]=29\n.[29]=30\n.[30]=31\n.[31]=32\n.[32]=33\n.[33]=34\n.[34]=35\n.[35]=36\n.[36]=37\n.[37]=38\n.[38]=39\n.[39]=40\n.[40]=41\n.[41]=42\n.[42]=43\n.[43]=44\n.[44]=45\n.[45]=46\n.[46]=47\n.[47]=48\n.[48]=49\n.[49]=50\n.[50]=51\n.[51]=52\n.[52]=53\n.[53]=54\n.[54]=55\n.[55]=56\n.[56]=57\n.[57]=58\n.[58]=59\n.[59]=60\n.[60]=61\n.[61]=62\n.[62]=63\n.[63]=64\n.[64]=65\n.[65]=66\n.[66]=67\n.[67]=68\n.[68]=69\n.[69]=70\n.[70]=71\n.[71]=72\n.[72]=73\n.[73]=74\n.[74]=75\n.[75]=76\n.[76]=77\n.[77]=78\n.[78]=79\n.[79]=80\n.[80]=81\n.[81]=82\n.[82]=83\n.[83]=84\n.[84]=85\n.[85]=86\n.[86]=87\n.[87]=88\n.[88]=89\n.[89]=90\n.[90]=91\n.[91]=92\n.[92]=93\n.[93]=94\n.[94]=95\n.[95]=96\n.[96]=97\n.[97]=98\n.[98]=99\n"
  },
  {
    "path": "test/data/legacy_test_array_05.json",
    "content": "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]"
  },
  {
    "path": "test/data/legacy_test_array_06.expected",
    "content": ".=[]\n.[0]=\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"\n.[1]=\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\"\n.[2]=\"ccccccccccccccccccccccc\"\n.[3]=\"dddddddddddddddddddddddddddddddddddddddddddddddddddd\"\n"
  },
  {
    "path": "test/data/legacy_test_array_06.json",
    "content": "[ \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\n  \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\n  \"ccccccccccccccccccccccc\",\n  \"dddddddddddddddddddddddddddddddddddddddddddddddddddd\" ]"
  },
  {
    "path": "test/data/legacy_test_array_07.expected",
    "content": ".=[]\n.[0]=[]\n.[0][0]=\"A\"\n.[0][1]=0\n.[0][2]=1\n.[0][3]=2\n.[0][4]=3\n.[0][5]=4\n.[0][6]=5\n.[0][7]=6\n.[0][8]=7\n.[0][9]=8\n.[0][10]=9\n.[0][11]=10\n.[0][12]=11\n.[0][13]=12\n.[0][14]=13\n.[0][15]=14\n.[0][16]=15\n.[0][17]=16\n.[0][18]=17\n.[0][19]=18\n.[0][20]=19\n.[0][21]=20\n.[0][22]=21\n.[0][23]=22\n.[0][24]=23\n.[0][25]=24\n.[0][26]=25\n.[0][27]=26\n.[0][28]=27\n.[0][29]=28\n.[0][30]=29\n.[0][31]=30\n.[0][32]=31\n.[0][33]=32\n.[0][34]=33\n.[0][35]=34\n.[0][36]=35\n.[0][37]=36\n.[0][38]=37\n.[0][39]=38\n.[0][40]=39\n.[0][41]=40\n.[0][42]=41\n.[0][43]=42\n.[0][44]=43\n.[0][45]=44\n.[0][46]=45\n.[0][47]=46\n.[0][48]=47\n.[0][49]=48\n.[0][50]=49\n.[0][51]=50\n.[0][52]=51\n.[0][53]=52\n.[0][54]=53\n.[0][55]=54\n.[0][56]=55\n.[0][57]=56\n.[0][58]=57\n.[0][59]=58\n.[0][60]=59\n.[0][61]=60\n.[0][62]=61\n.[0][63]=62\n.[0][64]=63\n.[0][65]=64\n.[0][66]=65\n.[0][67]=66\n.[0][68]=67\n.[0][69]=68\n.[0][70]=69\n.[0][71]=70\n.[0][72]=71\n.[0][73]=72\n.[0][74]=73\n.[0][75]=74\n.[0][76]=75\n.[0][77]=76\n.[0][78]=77\n.[0][79]=78\n.[0][80]=79\n.[0][81]=80\n.[0][82]=81\n.[0][83]=82\n.[0][84]=83\n.[0][85]=84\n.[0][86]=85\n.[0][87]=86\n.[0][88]=87\n.[0][89]=88\n.[0][90]=89\n.[0][91]=90\n.[0][92]=91\n.[0][93]=92\n.[0][94]=93\n.[0][95]=94\n.[0][96]=95\n.[0][97]=96\n.[0][98]=97\n.[0][99]=98\n.[0][100]=99\n.[0][101]=100\n.[0][102]=101\n.[0][103]=102\n.[0][104]=103\n.[0][105]=104\n.[0][106]=105\n.[0][107]=106\n.[0][108]=107\n.[0][109]=108\n.[0][110]=109\n.[0][111]=110\n.[0][112]=111\n.[0][113]=112\n.[0][114]=113\n.[0][115]=114\n.[0][116]=115\n.[0][117]=116\n.[0][118]=117\n.[0][119]=118\n.[0][120]=119\n.[0][121]=120\n.[0][122]=121\n.[0][123]=122\n.[0][124]=123\n.[0][125]=124\n.[0][126]=125\n.[0][127]=126\n.[0][128]=127\n.[0][129]=128\n.[0][130]=129\n.[0][131]=130\n.[0][132]=131\n.[0][133]=132\n.[0][134]=133\n.[0][135]=134\n.[0][136]=135\n.[0][137]=136\n.[0][138]=137\n.[0][139]=138\n.[0][140]=139\n.[0][141]=140\n.[0][142]=141\n.[0][143]=142\n.[0][144]=143\n.[0][145]=144\n.[0][146]=145\n.[0][147]=146\n.[0][148]=147\n.[0][149]=148\n.[0][150]=149\n.[0][151]=150\n.[0][152]=151\n.[0][153]=152\n.[0][154]=153\n.[0][155]=154\n.[0][156]=155\n.[0][157]=156\n.[0][158]=157\n.[0][159]=158\n.[0][160]=159\n.[0][161]=160\n.[0][162]=161\n.[0][163]=162\n.[0][164]=163\n.[0][165]=164\n.[0][166]=165\n.[0][167]=166\n.[0][168]=167\n.[0][169]=168\n.[0][170]=169\n.[0][171]=170\n.[0][172]=171\n.[0][173]=172\n.[0][174]=173\n.[0][175]=174\n.[0][176]=175\n.[0][177]=176\n.[0][178]=177\n.[0][179]=178\n.[0][180]=179\n.[0][181]=180\n.[0][182]=181\n.[0][183]=182\n.[0][184]=183\n.[0][185]=184\n.[0][186]=185\n.[0][187]=186\n.[0][188]=187\n.[0][189]=188\n.[0][190]=189\n.[0][191]=190\n.[0][192]=191\n.[0][193]=192\n.[0][194]=193\n.[0][195]=194\n.[0][196]=195\n.[0][197]=196\n.[0][198]=197\n.[0][199]=198\n.[0][200]=199\n.[0][201]=200\n.[0][202]=201\n.[0][203]=202\n.[0][204]=203\n.[0][205]=204\n.[0][206]=205\n.[0][207]=206\n.[0][208]=207\n.[0][209]=208\n.[0][210]=209\n.[0][211]=210\n.[0][212]=211\n.[0][213]=212\n.[0][214]=213\n.[0][215]=214\n.[0][216]=215\n.[0][217]=216\n.[0][218]=217\n.[0][219]=218\n.[0][220]=219\n.[0][221]=220\n.[0][222]=221\n.[0][223]=222\n.[0][224]=223\n.[0][225]=224\n.[0][226]=225\n.[0][227]=226\n.[0][228]=227\n.[0][229]=228\n.[0][230]=229\n.[0][231]=230\n.[0][232]=231\n.[0][233]=232\n.[0][234]=233\n.[0][235]=234\n.[0][236]=235\n.[0][237]=236\n.[0][238]=237\n.[0][239]=238\n.[0][240]=239\n.[0][241]=240\n.[0][242]=241\n.[0][243]=242\n.[0][244]=243\n.[0][245]=244\n.[0][246]=245\n.[0][247]=246\n.[0][248]=247\n.[0][249]=248\n.[0][250]=249\n.[0][251]=250\n.[0][252]=251\n.[0][253]=252\n.[0][254]=253\n.[0][255]=254\n.[0][256]=255\n.[0][257]=256\n.[0][258]=257\n.[0][259]=258\n.[0][260]=259\n.[0][261]=260\n.[0][262]=261\n.[0][263]=262\n.[0][264]=263\n.[0][265]=264\n.[0][266]=265\n.[0][267]=266\n.[0][268]=267\n.[0][269]=268\n.[0][270]=269\n.[0][271]=270\n.[0][272]=271\n.[0][273]=272\n.[0][274]=273\n.[0][275]=274\n.[0][276]=275\n.[0][277]=276\n.[0][278]=277\n.[0][279]=278\n.[0][280]=279\n.[0][281]=280\n.[0][282]=281\n.[0][283]=282\n.[0][284]=283\n.[0][285]=284\n.[0][286]=285\n.[0][287]=286\n.[0][288]=287\n.[0][289]=288\n.[0][290]=289\n.[0][291]=290\n.[0][292]=291\n.[0][293]=292\n.[0][294]=293\n.[0][295]=294\n.[0][296]=295\n.[0][297]=296\n.[0][298]=297\n.[0][299]=298\n.[0][300]=299\n.[0][301]=300\n.[0][302]=301\n.[0][303]=302\n.[0][304]=303\n.[0][305]=304\n.[0][306]=305\n.[0][307]=306\n.[0][308]=307\n.[0][309]=308\n.[0][310]=309\n.[0][311]=310\n.[0][312]=311\n.[0][313]=312\n.[0][314]=313\n.[0][315]=314\n.[0][316]=315\n.[0][317]=316\n.[0][318]=317\n.[0][319]=318\n.[0][320]=319\n.[0][321]=320\n.[0][322]=321\n.[0][323]=322\n.[0][324]=323\n.[0][325]=324\n.[0][326]=325\n.[0][327]=326\n.[0][328]=327\n.[0][329]=328\n.[0][330]=329\n.[0][331]=330\n.[0][332]=331\n.[0][333]=332\n.[0][334]=333\n.[0][335]=334\n.[0][336]=335\n.[0][337]=336\n.[0][338]=337\n.[0][339]=338\n.[0][340]=339\n.[0][341]=340\n.[0][342]=341\n.[0][343]=342\n.[0][344]=343\n.[0][345]=344\n.[0][346]=345\n.[0][347]=346\n.[0][348]=347\n.[0][349]=348\n.[0][350]=349\n.[0][351]=350\n.[0][352]=351\n.[0][353]=352\n.[0][354]=353\n.[0][355]=354\n.[0][356]=355\n.[0][357]=356\n.[0][358]=357\n.[0][359]=358\n.[0][360]=359\n.[0][361]=360\n.[0][362]=361\n.[0][363]=362\n.[0][364]=363\n.[0][365]=364\n.[0][366]=365\n.[0][367]=366\n.[0][368]=367\n.[0][369]=368\n.[0][370]=369\n.[0][371]=370\n.[0][372]=371\n.[0][373]=372\n.[0][374]=373\n.[0][375]=374\n.[0][376]=375\n.[0][377]=376\n.[0][378]=377\n.[0][379]=378\n.[0][380]=379\n.[0][381]=380\n.[0][382]=381\n.[0][383]=382\n.[0][384]=383\n.[0][385]=384\n.[0][386]=385\n.[0][387]=386\n.[0][388]=387\n.[0][389]=388\n.[0][390]=389\n.[0][391]=390\n.[0][392]=391\n.[0][393]=392\n.[0][394]=393\n.[0][395]=394\n.[0][396]=395\n.[0][397]=396\n.[0][398]=397\n.[0][399]=398\n.[0][400]=399\n.[0][401]=400\n.[0][402]=401\n.[0][403]=402\n.[0][404]=403\n.[0][405]=404\n.[0][406]=405\n.[0][407]=406\n.[0][408]=407\n.[0][409]=408\n.[0][410]=409\n.[0][411]=410\n.[0][412]=411\n.[0][413]=412\n.[0][414]=413\n.[0][415]=414\n.[0][416]=415\n.[0][417]=416\n.[0][418]=417\n.[0][419]=418\n.[0][420]=419\n.[0][421]=420\n.[0][422]=421\n.[0][423]=422\n.[0][424]=423\n.[0][425]=424\n.[0][426]=425\n.[0][427]=426\n.[0][428]=427\n.[0][429]=428\n.[0][430]=429\n.[0][431]=430\n.[0][432]=431\n.[0][433]=432\n.[0][434]=433\n.[0][435]=434\n.[0][436]=435\n.[0][437]=436\n.[0][438]=437\n.[0][439]=438\n.[0][440]=439\n.[0][441]=440\n.[0][442]=441\n.[0][443]=442\n.[0][444]=443\n.[0][445]=444\n.[0][446]=445\n.[0][447]=446\n.[0][448]=447\n.[0][449]=448\n.[0][450]=449\n.[0][451]=450\n.[0][452]=451\n.[0][453]=452\n.[0][454]=453\n.[0][455]=454\n.[0][456]=455\n.[0][457]=456\n.[0][458]=457\n.[0][459]=458\n.[0][460]=459\n.[0][461]=460\n.[0][462]=461\n.[0][463]=462\n.[0][464]=463\n.[0][465]=464\n.[0][466]=465\n.[0][467]=466\n.[0][468]=467\n.[0][469]=468\n.[0][470]=469\n.[0][471]=470\n.[0][472]=471\n.[0][473]=472\n.[0][474]=473\n.[0][475]=474\n.[0][476]=475\n.[0][477]=476\n.[0][478]=477\n.[0][479]=478\n.[0][480]=479\n.[0][481]=480\n.[0][482]=481\n.[0][483]=482\n.[0][484]=483\n.[0][485]=484\n.[0][486]=485\n.[0][487]=486\n.[0][488]=487\n.[0][489]=488\n.[0][490]=489\n.[0][491]=490\n.[0][492]=491\n.[0][493]=492\n.[0][494]=493\n.[0][495]=494\n.[0][496]=495\n.[0][497]=496\n.[0][498]=497\n.[0][499]=498\n.[0][500]=499\n.[0][501]=500\n.[0][502]=501\n.[0][503]=502\n.[0][504]=503\n.[0][505]=504\n.[0][506]=505\n.[0][507]=506\n.[0][508]=507\n.[0][509]=508\n.[0][510]=509\n.[0][511]=510\n.[0][512]=511\n.[0][513]=512\n.[0][514]=513\n.[0][515]=514\n.[0][516]=515\n.[0][517]=516\n.[0][518]=517\n.[0][519]=518\n.[0][520]=519\n.[0][521]=520\n.[0][522]=521\n.[0][523]=522\n.[0][524]=523\n.[0][525]=524\n.[0][526]=525\n.[0][527]=526\n.[0][528]=527\n.[0][529]=528\n.[0][530]=529\n.[0][531]=530\n.[0][532]=531\n.[0][533]=532\n.[0][534]=533\n.[0][535]=534\n.[0][536]=535\n.[0][537]=536\n.[0][538]=537\n.[0][539]=538\n.[0][540]=539\n.[0][541]=540\n.[0][542]=541\n.[0][543]=542\n.[0][544]=543\n.[0][545]=544\n.[0][546]=545\n.[0][547]=546\n.[0][548]=547\n.[0][549]=548\n.[0][550]=549\n.[0][551]=550\n.[0][552]=551\n.[0][553]=552\n.[0][554]=553\n.[0][555]=554\n.[0][556]=555\n.[0][557]=556\n.[0][558]=557\n.[0][559]=558\n.[0][560]=559\n.[0][561]=560\n.[0][562]=561\n.[0][563]=562\n.[0][564]=563\n.[0][565]=564\n.[0][566]=565\n.[0][567]=566\n.[0][568]=567\n.[0][569]=568\n.[0][570]=569\n.[0][571]=570\n.[0][572]=571\n.[0][573]=572\n.[0][574]=573\n.[0][575]=574\n.[0][576]=575\n.[0][577]=576\n.[0][578]=577\n.[0][579]=578\n.[0][580]=579\n.[0][581]=580\n.[0][582]=581\n.[0][583]=582\n.[0][584]=583\n.[0][585]=584\n.[0][586]=585\n.[0][587]=586\n.[0][588]=587\n.[0][589]=588\n.[0][590]=589\n.[0][591]=590\n.[0][592]=591\n.[0][593]=592\n.[0][594]=593\n.[0][595]=594\n.[0][596]=595\n.[0][597]=596\n.[0][598]=597\n.[0][599]=598\n.[0][600]=599\n.[0][601]=600\n.[0][602]=601\n.[0][603]=602\n.[0][604]=603\n.[0][605]=604\n.[0][606]=605\n.[0][607]=606\n.[0][608]=607\n.[0][609]=608\n.[0][610]=609\n.[0][611]=610\n.[0][612]=611\n.[0][613]=612\n.[0][614]=613\n.[0][615]=614\n.[0][616]=615\n.[0][617]=616\n.[0][618]=617\n.[0][619]=618\n.[0][620]=619\n.[0][621]=620\n.[0][622]=621\n.[0][623]=622\n.[0][624]=623\n.[0][625]=624\n.[0][626]=625\n.[0][627]=626\n.[0][628]=627\n.[0][629]=628\n.[0][630]=629\n.[0][631]=630\n.[0][632]=631\n.[0][633]=632\n.[0][634]=633\n.[0][635]=634\n.[0][636]=635\n.[0][637]=636\n.[0][638]=637\n.[0][639]=638\n.[0][640]=639\n.[0][641]=640\n.[0][642]=641\n.[0][643]=642\n.[0][644]=643\n.[0][645]=644\n.[0][646]=645\n.[0][647]=646\n.[0][648]=647\n.[0][649]=648\n.[0][650]=649\n.[0][651]=650\n.[0][652]=651\n.[0][653]=652\n.[0][654]=653\n.[0][655]=654\n.[0][656]=655\n.[0][657]=656\n.[0][658]=657\n.[0][659]=658\n.[0][660]=659\n.[0][661]=660\n.[0][662]=661\n.[0][663]=662\n.[0][664]=663\n.[0][665]=664\n.[0][666]=665\n.[0][667]=666\n.[0][668]=667\n.[0][669]=668\n.[0][670]=669\n.[0][671]=670\n.[0][672]=671\n.[0][673]=672\n.[0][674]=673\n.[0][675]=674\n.[0][676]=675\n.[0][677]=676\n.[0][678]=677\n.[0][679]=678\n.[0][680]=679\n.[0][681]=680\n.[0][682]=681\n.[0][683]=682\n.[0][684]=683\n.[0][685]=684\n.[0][686]=685\n.[0][687]=686\n.[0][688]=687\n.[0][689]=688\n.[0][690]=689\n.[0][691]=690\n.[0][692]=691\n.[0][693]=692\n.[0][694]=693\n.[0][695]=694\n.[0][696]=695\n.[0][697]=696\n.[0][698]=697\n.[0][699]=698\n.[0][700]=699\n.[0][701]=700\n.[0][702]=701\n.[0][703]=702\n.[0][704]=703\n.[0][705]=704\n.[0][706]=705\n.[0][707]=706\n.[0][708]=707\n.[0][709]=708\n.[0][710]=709\n.[0][711]=710\n.[0][712]=711\n.[0][713]=712\n.[0][714]=713\n.[0][715]=714\n.[0][716]=715\n.[0][717]=716\n.[0][718]=717\n.[0][719]=718\n.[0][720]=719\n.[0][721]=720\n.[0][722]=721\n.[0][723]=722\n.[0][724]=723\n.[0][725]=724\n.[0][726]=725\n.[0][727]=726\n.[0][728]=727\n.[0][729]=728\n.[0][730]=729\n.[0][731]=730\n.[0][732]=731\n.[0][733]=732\n.[0][734]=733\n.[0][735]=734\n.[0][736]=735\n.[0][737]=736\n.[0][738]=737\n.[0][739]=738\n.[0][740]=739\n.[0][741]=740\n.[0][742]=741\n.[0][743]=742\n.[0][744]=743\n.[0][745]=744\n.[0][746]=745\n.[0][747]=746\n.[0][748]=747\n.[0][749]=748\n.[0][750]=749\n.[0][751]=750\n.[0][752]=751\n.[0][753]=752\n.[0][754]=753\n.[0][755]=754\n.[0][756]=755\n.[0][757]=756\n.[0][758]=757\n.[0][759]=758\n.[0][760]=759\n.[0][761]=760\n.[0][762]=761\n.[0][763]=762\n.[0][764]=763\n.[0][765]=764\n.[0][766]=765\n.[0][767]=766\n.[0][768]=767\n.[0][769]=768\n.[0][770]=769\n.[0][771]=770\n.[0][772]=771\n.[0][773]=772\n.[0][774]=773\n.[0][775]=774\n.[0][776]=775\n.[0][777]=776\n.[0][778]=777\n.[0][779]=778\n.[0][780]=779\n.[0][781]=780\n.[0][782]=781\n.[0][783]=782\n.[0][784]=783\n.[0][785]=784\n.[0][786]=785\n.[0][787]=786\n.[0][788]=787\n.[0][789]=788\n.[0][790]=789\n.[0][791]=790\n.[0][792]=791\n.[0][793]=792\n.[0][794]=793\n.[0][795]=794\n.[0][796]=795\n.[0][797]=796\n.[0][798]=797\n.[0][799]=798\n.[0][800]=799\n.[0][801]=800\n.[0][802]=801\n.[0][803]=802\n.[0][804]=803\n.[0][805]=804\n.[0][806]=805\n.[0][807]=806\n.[0][808]=807\n.[0][809]=808\n.[0][810]=809\n.[0][811]=810\n.[0][812]=811\n.[0][813]=812\n.[0][814]=813\n.[0][815]=814\n.[0][816]=815\n.[0][817]=816\n.[0][818]=817\n.[0][819]=818\n.[0][820]=819\n.[0][821]=820\n.[0][822]=821\n.[0][823]=822\n.[0][824]=823\n.[0][825]=824\n.[0][826]=825\n.[0][827]=826\n.[0][828]=827\n.[0][829]=828\n.[0][830]=829\n.[0][831]=830\n.[0][832]=831\n.[0][833]=832\n.[0][834]=833\n.[0][835]=834\n.[0][836]=835\n.[0][837]=836\n.[0][838]=837\n.[0][839]=838\n.[0][840]=839\n.[0][841]=840\n.[0][842]=841\n.[0][843]=842\n.[0][844]=843\n.[0][845]=844\n.[0][846]=845\n.[0][847]=846\n.[0][848]=847\n.[0][849]=848\n.[0][850]=849\n.[0][851]=850\n.[0][852]=851\n.[0][853]=852\n.[0][854]=853\n.[0][855]=854\n.[0][856]=855\n.[0][857]=856\n.[0][858]=857\n.[0][859]=858\n.[0][860]=859\n.[0][861]=860\n.[0][862]=861\n.[0][863]=862\n.[0][864]=863\n.[0][865]=864\n.[0][866]=865\n.[0][867]=866\n.[0][868]=867\n.[0][869]=868\n.[0][870]=869\n.[0][871]=870\n.[0][872]=871\n.[0][873]=872\n.[0][874]=873\n.[0][875]=874\n.[0][876]=875\n.[0][877]=876\n.[0][878]=877\n.[0][879]=878\n.[0][880]=879\n.[0][881]=880\n.[0][882]=881\n.[0][883]=882\n.[0][884]=883\n.[0][885]=884\n.[0][886]=885\n.[0][887]=886\n.[0][888]=887\n.[0][889]=888\n.[0][890]=889\n.[0][891]=890\n.[0][892]=891\n.[0][893]=892\n.[0][894]=893\n.[0][895]=894\n.[0][896]=895\n.[0][897]=896\n.[0][898]=897\n.[0][899]=898\n.[0][900]=899\n.[0][901]=900\n.[0][902]=901\n.[0][903]=902\n.[0][904]=903\n.[0][905]=904\n.[0][906]=905\n.[0][907]=906\n.[0][908]=907\n.[0][909]=908\n.[0][910]=909\n.[0][911]=910\n.[0][912]=911\n.[0][913]=912\n.[0][914]=913\n.[0][915]=914\n.[0][916]=915\n.[0][917]=916\n.[0][918]=917\n.[0][919]=918\n.[0][920]=919\n.[0][921]=920\n.[0][922]=921\n.[0][923]=922\n.[0][924]=923\n.[0][925]=924\n.[0][926]=925\n.[0][927]=926\n.[0][928]=927\n.[0][929]=928\n.[0][930]=929\n.[0][931]=930\n.[0][932]=931\n.[0][933]=932\n.[0][934]=933\n.[0][935]=934\n.[0][936]=935\n.[0][937]=936\n.[0][938]=937\n.[0][939]=938\n.[0][940]=939\n.[0][941]=940\n.[0][942]=941\n.[0][943]=942\n.[0][944]=943\n.[0][945]=944\n.[0][946]=945\n.[0][947]=946\n.[0][948]=947\n.[0][949]=948\n.[0][950]=949\n.[0][951]=950\n.[0][952]=951\n.[0][953]=952\n.[0][954]=953\n.[0][955]=954\n.[0][956]=955\n.[0][957]=956\n.[0][958]=957\n.[0][959]=958\n.[0][960]=959\n.[0][961]=960\n.[0][962]=961\n.[0][963]=962\n.[0][964]=963\n.[0][965]=964\n.[0][966]=965\n.[0][967]=966\n.[0][968]=967\n.[0][969]=968\n.[0][970]=969\n.[0][971]=970\n.[0][972]=971\n.[0][973]=972\n.[0][974]=973\n.[0][975]=974\n.[0][976]=975\n.[0][977]=976\n.[0][978]=977\n.[0][979]=978\n.[0][980]=979\n.[0][981]=980\n.[0][982]=981\n.[0][983]=982\n.[0][984]=983\n.[0][985]=984\n.[0][986]=985\n.[0][987]=986\n.[0][988]=987\n.[0][989]=988\n.[0][990]=989\n.[0][991]=990\n.[0][992]=991\n.[0][993]=992\n.[0][994]=993\n.[0][995]=994\n.[0][996]=995\n.[0][997]=996\n.[0][998]=997\n.[0][999]=998\n.[0][1000]=999\n.[0][1001]=1000\n.[0][1002]=1001\n.[0][1003]=1002\n.[0][1004]=1003\n.[0][1005]=1004\n.[0][1006]=1005\n.[0][1007]=1006\n.[0][1008]=1007\n.[0][1009]=1008\n.[0][1010]=1009\n.[0][1011]=1010\n.[0][1012]=1011\n.[0][1013]=1012\n.[0][1014]=1013\n.[0][1015]=1014\n.[0][1016]=1015\n.[0][1017]=1016\n.[0][1018]=1017\n.[0][1019]=1018\n.[0][1020]=1019\n.[0][1021]=1020\n.[0][1022]=1021\n.[0][1023]=1022\n.[0][1024]=1023\n.[0][1025]=1024\n.[0][1026]=1025\n.[0][1027]=1026\n.[0][1028]=1027\n.[0][1029]=1028\n.[0][1030]=1029\n.[0][1031]=1030\n.[0][1032]=1031\n.[0][1033]=1032\n.[0][1034]=1033\n.[0][1035]=1034\n.[0][1036]=1035\n.[0][1037]=1036\n.[0][1038]=1037\n.[0][1039]=1038\n.[0][1040]=1039\n.[0][1041]=1040\n.[0][1042]=1041\n.[0][1043]=1042\n.[0][1044]=1043\n.[0][1045]=1044\n.[0][1046]=1045\n.[0][1047]=1046\n.[0][1048]=1047\n.[0][1049]=1048\n.[0][1050]=1049\n.[0][1051]=1050\n.[0][1052]=1051\n.[0][1053]=1052\n.[0][1054]=1053\n.[0][1055]=1054\n.[0][1056]=1055\n.[0][1057]=1056\n.[0][1058]=1057\n.[0][1059]=1058\n.[0][1060]=1059\n.[0][1061]=1060\n.[0][1062]=1061\n.[0][1063]=1062\n.[0][1064]=1063\n.[0][1065]=1064\n.[0][1066]=1065\n.[0][1067]=1066\n.[0][1068]=1067\n.[0][1069]=1068\n.[0][1070]=1069\n.[0][1071]=1070\n.[0][1072]=1071\n.[0][1073]=1072\n.[0][1074]=1073\n.[0][1075]=1074\n.[0][1076]=1075\n.[0][1077]=1076\n.[0][1078]=1077\n.[0][1079]=1078\n.[0][1080]=1079\n.[0][1081]=1080\n.[0][1082]=1081\n.[0][1083]=1082\n.[0][1084]=1083\n.[0][1085]=1084\n.[0][1086]=1085\n.[0][1087]=1086\n.[0][1088]=1087\n.[0][1089]=1088\n.[0][1090]=1089\n.[0][1091]=1090\n.[0][1092]=1091\n.[0][1093]=1092\n.[0][1094]=1093\n.[0][1095]=1094\n.[0][1096]=1095\n.[0][1097]=1096\n.[0][1098]=1097\n.[0][1099]=1098\n.[0][1100]=1099\n.[0][1101]=1100\n.[0][1102]=1101\n.[0][1103]=1102\n.[0][1104]=1103\n.[0][1105]=1104\n.[0][1106]=1105\n.[0][1107]=1106\n.[0][1108]=1107\n.[0][1109]=1108\n.[0][1110]=1109\n.[0][1111]=1110\n.[0][1112]=1111\n.[0][1113]=1112\n.[0][1114]=1113\n.[0][1115]=1114\n.[0][1116]=1115\n.[0][1117]=1116\n.[0][1118]=1117\n.[0][1119]=1118\n.[0][1120]=1119\n.[0][1121]=1120\n.[0][1122]=1121\n.[0][1123]=1122\n.[0][1124]=1123\n.[0][1125]=1124\n.[0][1126]=1125\n.[0][1127]=1126\n.[0][1128]=1127\n.[0][1129]=1128\n.[0][1130]=1129\n.[0][1131]=1130\n.[0][1132]=1131\n.[0][1133]=1132\n.[0][1134]=1133\n.[0][1135]=1134\n.[0][1136]=1135\n.[0][1137]=1136\n.[0][1138]=1137\n.[0][1139]=1138\n.[0][1140]=1139\n.[0][1141]=1140\n.[0][1142]=1141\n.[0][1143]=1142\n.[0][1144]=1143\n.[0][1145]=1144\n.[0][1146]=1145\n.[0][1147]=1146\n.[0][1148]=1147\n.[0][1149]=1148\n.[0][1150]=1149\n.[0][1151]=1150\n.[0][1152]=1151\n.[0][1153]=1152\n.[0][1154]=1153\n.[0][1155]=1154\n.[0][1156]=1155\n.[0][1157]=1156\n.[0][1158]=1157\n.[0][1159]=1158\n.[0][1160]=1159\n.[0][1161]=1160\n.[0][1162]=1161\n.[0][1163]=1162\n.[0][1164]=1163\n.[0][1165]=1164\n.[0][1166]=1165\n.[0][1167]=1166\n.[0][1168]=1167\n.[0][1169]=1168\n.[0][1170]=1169\n.[0][1171]=1170\n.[0][1172]=1171\n.[0][1173]=1172\n.[0][1174]=1173\n.[0][1175]=1174\n.[0][1176]=1175\n.[0][1177]=1176\n.[0][1178]=1177\n.[0][1179]=1178\n.[0][1180]=1179\n.[0][1181]=1180\n.[0][1182]=1181\n.[0][1183]=1182\n.[0][1184]=1183\n.[0][1185]=1184\n.[0][1186]=1185\n.[0][1187]=1186\n.[0][1188]=1187\n.[0][1189]=1188\n.[0][1190]=1189\n.[0][1191]=1190\n.[0][1192]=1191\n.[0][1193]=1192\n.[0][1194]=1193\n.[0][1195]=1194\n.[0][1196]=1195\n.[0][1197]=1196\n.[0][1198]=1197\n.[0][1199]=1198\n.[0][1200]=1199\n.[0][1201]=1200\n.[0][1202]=1201\n.[0][1203]=1202\n.[0][1204]=1203\n.[0][1205]=1204\n.[0][1206]=1205\n.[0][1207]=1206\n.[0][1208]=1207\n.[0][1209]=1208\n.[0][1210]=1209\n.[0][1211]=1210\n.[0][1212]=1211\n.[0][1213]=1212\n.[0][1214]=1213\n.[0][1215]=1214\n.[0][1216]=1215\n.[0][1217]=1216\n.[0][1218]=1217\n.[0][1219]=1218\n.[0][1220]=1219\n.[0][1221]=1220\n.[0][1222]=1221\n.[0][1223]=1222\n.[0][1224]=1223\n.[0][1225]=1224\n.[0][1226]=1225\n.[0][1227]=1226\n.[0][1228]=1227\n.[0][1229]=1228\n.[0][1230]=1229\n.[0][1231]=1230\n.[0][1232]=1231\n.[0][1233]=1232\n.[0][1234]=1233\n.[0][1235]=1234\n.[0][1236]=1235\n.[0][1237]=1236\n.[0][1238]=1237\n.[0][1239]=1238\n.[0][1240]=1239\n.[0][1241]=1240\n.[0][1242]=1241\n.[0][1243]=1242\n.[0][1244]=1243\n.[0][1245]=1244\n.[0][1246]=1245\n.[0][1247]=1246\n.[0][1248]=1247\n.[0][1249]=1248\n.[0][1250]=1249\n.[0][1251]=1250\n.[0][1252]=1251\n.[0][1253]=1252\n.[0][1254]=1253\n.[0][1255]=1254\n.[0][1256]=1255\n.[0][1257]=1256\n.[0][1258]=1257\n.[0][1259]=1258\n.[0][1260]=1259\n.[0][1261]=1260\n.[0][1262]=1261\n.[0][1263]=1262\n.[0][1264]=1263\n.[0][1265]=1264\n.[0][1266]=1265\n.[0][1267]=1266\n.[0][1268]=1267\n.[0][1269]=1268\n.[0][1270]=1269\n.[0][1271]=1270\n.[0][1272]=1271\n.[0][1273]=1272\n.[0][1274]=1273\n.[0][1275]=1274\n.[0][1276]=1275\n.[0][1277]=1276\n.[0][1278]=1277\n.[0][1279]=1278\n.[0][1280]=1279\n.[0][1281]=1280\n.[0][1282]=1281\n.[0][1283]=1282\n.[0][1284]=1283\n.[0][1285]=1284\n.[0][1286]=1285\n.[0][1287]=1286\n.[0][1288]=1287\n.[0][1289]=1288\n.[0][1290]=1289\n.[0][1291]=1290\n.[0][1292]=1291\n.[0][1293]=1292\n.[0][1294]=1293\n.[0][1295]=1294\n.[0][1296]=1295\n.[0][1297]=1296\n.[0][1298]=1297\n.[0][1299]=1298\n.[0][1300]=1299\n.[0][1301]=1300\n.[0][1302]=1301\n.[0][1303]=1302\n.[0][1304]=1303\n.[0][1305]=1304\n.[0][1306]=1305\n.[0][1307]=1306\n.[0][1308]=1307\n.[0][1309]=1308\n.[0][1310]=1309\n.[0][1311]=1310\n.[0][1312]=1311\n.[0][1313]=1312\n.[0][1314]=1313\n.[0][1315]=1314\n.[0][1316]=1315\n.[0][1317]=1316\n.[0][1318]=1317\n.[0][1319]=1318\n.[0][1320]=1319\n.[0][1321]=1320\n.[0][1322]=1321\n.[0][1323]=1322\n.[0][1324]=1323\n.[0][1325]=1324\n.[0][1326]=1325\n.[0][1327]=1326\n.[0][1328]=1327\n.[0][1329]=1328\n.[0][1330]=1329\n.[0][1331]=1330\n.[0][1332]=1331\n.[0][1333]=1332\n.[0][1334]=1333\n.[0][1335]=1334\n.[0][1336]=1335\n.[0][1337]=1336\n.[0][1338]=1337\n.[0][1339]=1338\n.[0][1340]=1339\n.[0][1341]=1340\n.[0][1342]=1341\n.[0][1343]=1342\n.[0][1344]=1343\n.[0][1345]=1344\n.[0][1346]=1345\n.[0][1347]=1346\n.[0][1348]=1347\n.[0][1349]=1348\n.[0][1350]=1349\n.[0][1351]=1350\n.[0][1352]=1351\n.[0][1353]=1352\n.[0][1354]=1353\n.[0][1355]=1354\n.[0][1356]=1355\n.[0][1357]=1356\n.[0][1358]=1357\n.[0][1359]=1358\n.[0][1360]=1359\n.[0][1361]=1360\n.[0][1362]=1361\n.[0][1363]=1362\n.[0][1364]=1363\n.[0][1365]=1364\n.[0][1366]=1365\n.[0][1367]=1366\n.[0][1368]=1367\n.[0][1369]=1368\n.[0][1370]=1369\n.[0][1371]=1370\n.[0][1372]=1371\n.[0][1373]=1372\n.[0][1374]=1373\n.[0][1375]=1374\n.[0][1376]=1375\n.[0][1377]=1376\n.[0][1378]=1377\n.[0][1379]=1378\n.[0][1380]=1379\n.[0][1381]=1380\n.[0][1382]=1381\n.[0][1383]=1382\n.[0][1384]=1383\n.[0][1385]=1384\n.[0][1386]=1385\n.[0][1387]=1386\n.[0][1388]=1387\n.[0][1389]=1388\n.[0][1390]=1389\n.[0][1391]=1390\n.[0][1392]=1391\n.[0][1393]=1392\n.[0][1394]=1393\n.[0][1395]=1394\n.[0][1396]=1395\n.[0][1397]=1396\n.[0][1398]=1397\n.[0][1399]=1398\n.[0][1400]=1399\n.[0][1401]=1400\n.[0][1402]=1401\n.[0][1403]=1402\n.[0][1404]=1403\n.[0][1405]=1404\n.[0][1406]=1405\n.[0][1407]=1406\n.[0][1408]=1407\n.[0][1409]=1408\n.[0][1410]=1409\n.[0][1411]=1410\n.[0][1412]=1411\n.[0][1413]=1412\n.[0][1414]=1413\n.[0][1415]=1414\n.[0][1416]=1415\n.[0][1417]=1416\n.[0][1418]=1417\n.[0][1419]=1418\n.[0][1420]=1419\n.[0][1421]=1420\n.[0][1422]=1421\n.[0][1423]=1422\n.[0][1424]=1423\n.[0][1425]=1424\n.[0][1426]=1425\n.[0][1427]=1426\n.[0][1428]=1427\n.[0][1429]=1428\n.[0][1430]=1429\n.[0][1431]=1430\n.[0][1432]=1431\n.[0][1433]=1432\n.[0][1434]=1433\n.[0][1435]=1434\n.[0][1436]=1435\n.[0][1437]=1436\n.[0][1438]=1437\n.[0][1439]=1438\n.[0][1440]=1439\n.[0][1441]=1440\n.[0][1442]=1441\n.[0][1443]=1442\n.[0][1444]=1443\n.[0][1445]=1444\n.[0][1446]=1445\n.[0][1447]=1446\n.[0][1448]=1447\n.[0][1449]=1448\n.[0][1450]=1449\n.[0][1451]=1450\n.[0][1452]=1451\n.[0][1453]=1452\n.[0][1454]=1453\n.[0][1455]=1454\n.[0][1456]=1455\n.[0][1457]=1456\n.[0][1458]=1457\n.[0][1459]=1458\n.[0][1460]=1459\n.[0][1461]=1460\n.[0][1462]=1461\n.[0][1463]=1462\n.[0][1464]=1463\n.[0][1465]=1464\n.[0][1466]=1465\n.[0][1467]=1466\n.[0][1468]=1467\n.[0][1469]=1468\n.[0][1470]=1469\n.[0][1471]=1470\n.[0][1472]=1471\n.[0][1473]=1472\n.[0][1474]=1473\n.[0][1475]=1474\n.[0][1476]=1475\n.[0][1477]=1476\n.[0][1478]=1477\n.[0][1479]=1478\n.[0][1480]=1479\n.[0][1481]=1480\n.[0][1482]=1481\n.[0][1483]=1482\n.[0][1484]=1483\n.[0][1485]=1484\n.[0][1486]=1485\n.[0][1487]=1486\n.[0][1488]=1487\n.[0][1489]=1488\n.[0][1490]=1489\n.[0][1491]=1490\n.[0][1492]=1491\n.[0][1493]=1492\n.[0][1494]=1493\n.[0][1495]=1494\n.[0][1496]=1495\n.[0][1497]=1496\n.[0][1498]=1497\n.[0][1499]=1498\n.[0][1500]=1499\n.[0][1501]=1500\n.[0][1502]=1501\n.[0][1503]=1502\n.[0][1504]=1503\n.[0][1505]=1504\n.[0][1506]=1505\n.[0][1507]=1506\n.[0][1508]=1507\n.[0][1509]=1508\n.[0][1510]=1509\n.[0][1511]=1510\n.[0][1512]=1511\n.[0][1513]=1512\n.[0][1514]=1513\n.[0][1515]=1514\n.[0][1516]=1515\n.[0][1517]=1516\n.[0][1518]=1517\n.[0][1519]=1518\n.[0][1520]=1519\n.[0][1521]=1520\n.[0][1522]=1521\n.[0][1523]=1522\n.[0][1524]=1523\n.[0][1525]=1524\n.[0][1526]=1525\n.[0][1527]=1526\n.[0][1528]=1527\n.[0][1529]=1528\n.[0][1530]=1529\n.[0][1531]=1530\n.[0][1532]=1531\n.[0][1533]=1532\n.[0][1534]=1533\n.[0][1535]=1534\n.[0][1536]=1535\n.[0][1537]=1536\n.[0][1538]=1537\n.[0][1539]=1538\n.[0][1540]=1539\n.[0][1541]=1540\n.[0][1542]=1541\n.[0][1543]=1542\n.[0][1544]=1543\n.[0][1545]=1544\n.[0][1546]=1545\n.[0][1547]=1546\n.[0][1548]=1547\n.[0][1549]=1548\n.[0][1550]=1549\n.[0][1551]=1550\n.[0][1552]=1551\n.[0][1553]=1552\n.[0][1554]=1553\n.[0][1555]=1554\n.[0][1556]=1555\n.[0][1557]=1556\n.[0][1558]=1557\n.[0][1559]=1558\n.[0][1560]=1559\n.[0][1561]=1560\n.[0][1562]=1561\n.[0][1563]=1562\n.[0][1564]=1563\n.[0][1565]=1564\n.[0][1566]=1565\n.[0][1567]=1566\n.[0][1568]=1567\n.[0][1569]=1568\n.[0][1570]=1569\n.[0][1571]=1570\n.[0][1572]=1571\n.[0][1573]=1572\n.[0][1574]=1573\n.[0][1575]=1574\n.[0][1576]=1575\n.[0][1577]=1576\n.[0][1578]=1577\n.[0][1579]=1578\n.[0][1580]=1579\n.[0][1581]=1580\n.[0][1582]=1581\n.[0][1583]=1582\n.[0][1584]=1583\n.[0][1585]=1584\n.[0][1586]=1585\n.[0][1587]=1586\n.[0][1588]=1587\n.[0][1589]=1588\n.[0][1590]=1589\n.[0][1591]=1590\n.[0][1592]=1591\n.[0][1593]=1592\n.[0][1594]=1593\n.[0][1595]=1594\n.[0][1596]=1595\n.[0][1597]=1596\n.[0][1598]=1597\n.[0][1599]=1598\n.[0][1600]=1599\n.[0][1601]=1600\n.[0][1602]=1601\n.[0][1603]=1602\n.[0][1604]=1603\n.[0][1605]=1604\n.[0][1606]=1605\n.[0][1607]=1606\n.[0][1608]=1607\n.[0][1609]=1608\n.[0][1610]=1609\n.[0][1611]=1610\n.[0][1612]=1611\n.[0][1613]=1612\n.[0][1614]=1613\n.[0][1615]=1614\n.[0][1616]=1615\n.[0][1617]=1616\n.[0][1618]=1617\n.[0][1619]=1618\n.[0][1620]=1619\n.[0][1621]=1620\n.[0][1622]=1621\n.[0][1623]=1622\n.[0][1624]=1623\n.[0][1625]=1624\n.[0][1626]=1625\n.[0][1627]=1626\n.[0][1628]=1627\n.[0][1629]=1628\n.[0][1630]=1629\n.[0][1631]=1630\n.[0][1632]=1631\n.[0][1633]=1632\n.[0][1634]=1633\n.[0][1635]=1634\n.[0][1636]=1635\n.[0][1637]=1636\n.[0][1638]=1637\n.[0][1639]=1638\n.[0][1640]=1639\n.[0][1641]=1640\n.[0][1642]=1641\n.[0][1643]=1642\n.[0][1644]=1643\n.[0][1645]=1644\n.[0][1646]=1645\n.[0][1647]=1646\n.[0][1648]=1647\n.[0][1649]=1648\n.[0][1650]=1649\n.[0][1651]=1650\n.[0][1652]=1651\n.[0][1653]=1652\n.[0][1654]=1653\n.[0][1655]=1654\n.[0][1656]=1655\n.[0][1657]=1656\n.[0][1658]=1657\n.[0][1659]=1658\n.[0][1660]=1659\n.[0][1661]=1660\n.[0][1662]=1661\n.[0][1663]=1662\n.[0][1664]=1663\n.[0][1665]=1664\n.[0][1666]=1665\n.[0][1667]=1666\n.[0][1668]=1667\n.[0][1669]=1668\n.[0][1670]=1669\n.[0][1671]=1670\n.[0][1672]=1671\n.[0][1673]=1672\n.[0][1674]=1673\n.[0][1675]=1674\n.[0][1676]=1675\n.[0][1677]=1676\n.[0][1678]=1677\n.[0][1679]=1678\n.[0][1680]=1679\n.[0][1681]=1680\n.[0][1682]=1681\n.[0][1683]=1682\n.[0][1684]=1683\n.[0][1685]=1684\n.[0][1686]=1685\n.[0][1687]=1686\n.[0][1688]=1687\n.[0][1689]=1688\n.[0][1690]=1689\n.[0][1691]=1690\n.[0][1692]=1691\n.[0][1693]=1692\n.[0][1694]=1693\n.[0][1695]=1694\n.[0][1696]=1695\n.[0][1697]=1696\n.[0][1698]=1697\n.[0][1699]=1698\n.[0][1700]=1699\n.[0][1701]=1700\n.[0][1702]=1701\n.[0][1703]=1702\n.[0][1704]=1703\n.[0][1705]=1704\n.[0][1706]=1705\n.[0][1707]=1706\n.[0][1708]=1707\n.[0][1709]=1708\n.[0][1710]=1709\n.[0][1711]=1710\n.[0][1712]=1711\n.[0][1713]=1712\n.[0][1714]=1713\n.[0][1715]=1714\n.[0][1716]=1715\n.[0][1717]=1716\n.[0][1718]=1717\n.[0][1719]=1718\n.[0][1720]=1719\n.[0][1721]=1720\n.[0][1722]=1721\n.[0][1723]=1722\n.[0][1724]=1723\n.[0][1725]=1724\n.[0][1726]=1725\n.[0][1727]=1726\n.[0][1728]=1727\n.[0][1729]=1728\n.[0][1730]=1729\n.[0][1731]=1730\n.[0][1732]=1731\n.[0][1733]=1732\n.[0][1734]=1733\n.[0][1735]=1734\n.[0][1736]=1735\n.[0][1737]=1736\n.[0][1738]=1737\n.[0][1739]=1738\n.[0][1740]=1739\n.[0][1741]=1740\n.[0][1742]=1741\n.[0][1743]=1742\n.[0][1744]=1743\n.[0][1745]=1744\n.[0][1746]=1745\n.[0][1747]=1746\n.[0][1748]=1747\n.[0][1749]=1748\n.[0][1750]=1749\n.[0][1751]=1750\n.[0][1752]=1751\n.[0][1753]=1752\n.[0][1754]=1753\n.[0][1755]=1754\n.[0][1756]=1755\n.[0][1757]=1756\n.[0][1758]=1757\n.[0][1759]=1758\n.[0][1760]=1759\n.[0][1761]=1760\n.[0][1762]=1761\n.[0][1763]=1762\n.[0][1764]=1763\n.[0][1765]=1764\n.[0][1766]=1765\n.[0][1767]=1766\n.[0][1768]=1767\n.[0][1769]=1768\n.[0][1770]=1769\n.[0][1771]=1770\n.[0][1772]=1771\n.[0][1773]=1772\n.[0][1774]=1773\n.[0][1775]=1774\n.[0][1776]=1775\n.[0][1777]=1776\n.[0][1778]=1777\n.[0][1779]=1778\n.[0][1780]=1779\n.[0][1781]=1780\n.[0][1782]=1781\n.[0][1783]=1782\n.[0][1784]=1783\n.[0][1785]=1784\n.[0][1786]=1785\n.[0][1787]=1786\n.[0][1788]=1787\n.[0][1789]=1788\n.[0][1790]=1789\n.[0][1791]=1790\n.[0][1792]=1791\n.[0][1793]=1792\n.[0][1794]=1793\n.[0][1795]=1794\n.[0][1796]=1795\n.[0][1797]=1796\n.[0][1798]=1797\n.[0][1799]=1798\n.[0][1800]=1799\n.[0][1801]=1800\n.[0][1802]=1801\n.[0][1803]=1802\n.[0][1804]=1803\n.[0][1805]=1804\n.[0][1806]=1805\n.[0][1807]=1806\n.[0][1808]=1807\n.[0][1809]=1808\n.[0][1810]=1809\n.[0][1811]=1810\n.[0][1812]=1811\n.[0][1813]=1812\n.[0][1814]=1813\n.[0][1815]=1814\n.[0][1816]=1815\n.[0][1817]=1816\n.[0][1818]=1817\n.[0][1819]=1818\n.[0][1820]=1819\n.[0][1821]=1820\n.[0][1822]=1821\n.[0][1823]=1822\n.[0][1824]=1823\n.[0][1825]=1824\n.[0][1826]=1825\n.[0][1827]=1826\n.[0][1828]=1827\n.[0][1829]=1828\n.[0][1830]=1829\n.[0][1831]=1830\n.[0][1832]=1831\n.[0][1833]=1832\n.[0][1834]=1833\n.[0][1835]=1834\n.[0][1836]=1835\n.[0][1837]=1836\n.[0][1838]=1837\n.[0][1839]=1838\n.[0][1840]=1839\n.[0][1841]=1840\n.[0][1842]=1841\n.[0][1843]=1842\n.[0][1844]=1843\n.[0][1845]=1844\n.[0][1846]=1845\n.[0][1847]=1846\n.[0][1848]=1847\n.[0][1849]=1848\n.[0][1850]=1849\n.[0][1851]=1850\n.[0][1852]=1851\n.[0][1853]=1852\n.[0][1854]=1853\n.[0][1855]=1854\n.[0][1856]=1855\n.[0][1857]=1856\n.[0][1858]=1857\n.[0][1859]=1858\n.[0][1860]=1859\n.[0][1861]=1860\n.[0][1862]=1861\n.[0][1863]=1862\n.[0][1864]=1863\n.[0][1865]=1864\n.[0][1866]=1865\n.[0][1867]=1866\n.[0][1868]=1867\n.[0][1869]=1868\n.[0][1870]=1869\n.[0][1871]=1870\n.[0][1872]=1871\n.[0][1873]=1872\n.[0][1874]=1873\n.[0][1875]=1874\n.[0][1876]=1875\n.[0][1877]=1876\n.[0][1878]=1877\n.[0][1879]=1878\n.[0][1880]=1879\n.[0][1881]=1880\n.[0][1882]=1881\n.[0][1883]=1882\n.[0][1884]=1883\n.[0][1885]=1884\n.[0][1886]=1885\n.[0][1887]=1886\n.[0][1888]=1887\n.[0][1889]=1888\n.[0][1890]=1889\n.[0][1891]=1890\n.[0][1892]=1891\n.[0][1893]=1892\n.[0][1894]=1893\n.[0][1895]=1894\n.[0][1896]=1895\n.[0][1897]=1896\n.[0][1898]=1897\n.[0][1899]=1898\n.[0][1900]=1899\n.[0][1901]=1900\n.[0][1902]=1901\n.[0][1903]=1902\n.[0][1904]=1903\n.[0][1905]=1904\n.[0][1906]=1905\n.[0][1907]=1906\n.[0][1908]=1907\n.[0][1909]=1908\n.[0][1910]=1909\n.[0][1911]=1910\n.[0][1912]=1911\n.[0][1913]=1912\n.[0][1914]=1913\n.[0][1915]=1914\n.[0][1916]=1915\n.[0][1917]=1916\n.[0][1918]=1917\n.[0][1919]=1918\n.[0][1920]=1919\n.[0][1921]=1920\n.[0][1922]=1921\n.[0][1923]=1922\n.[0][1924]=1923\n.[0][1925]=1924\n.[0][1926]=1925\n.[0][1927]=1926\n.[0][1928]=1927\n.[0][1929]=1928\n.[0][1930]=1929\n.[0][1931]=1930\n.[0][1932]=1931\n.[0][1933]=1932\n.[0][1934]=1933\n.[0][1935]=1934\n.[0][1936]=1935\n.[0][1937]=1936\n.[0][1938]=1937\n.[0][1939]=1938\n.[0][1940]=1939\n.[0][1941]=1940\n.[0][1942]=1941\n.[0][1943]=1942\n.[0][1944]=1943\n.[0][1945]=1944\n.[0][1946]=1945\n.[0][1947]=1946\n.[0][1948]=1947\n.[0][1949]=1948\n.[0][1950]=1949\n.[0][1951]=1950\n.[0][1952]=1951\n.[0][1953]=1952\n.[0][1954]=1953\n.[0][1955]=1954\n.[0][1956]=1955\n.[0][1957]=1956\n.[0][1958]=1957\n.[0][1959]=1958\n.[0][1960]=1959\n.[0][1961]=1960\n.[0][1962]=1961\n.[0][1963]=1962\n.[0][1964]=1963\n.[0][1965]=1964\n.[0][1966]=1965\n.[0][1967]=1966\n.[0][1968]=1967\n.[0][1969]=1968\n.[0][1970]=1969\n.[0][1971]=1970\n.[0][1972]=1971\n.[0][1973]=1972\n.[0][1974]=1973\n.[0][1975]=1974\n.[0][1976]=1975\n.[0][1977]=1976\n.[0][1978]=1977\n.[0][1979]=1978\n.[0][1980]=1979\n.[0][1981]=1980\n.[0][1982]=1981\n.[0][1983]=1982\n.[0][1984]=1983\n.[0][1985]=1984\n.[0][1986]=1985\n.[0][1987]=1986\n.[0][1988]=1987\n.[0][1989]=1988\n.[0][1990]=1989\n.[0][1991]=1990\n.[0][1992]=1991\n.[0][1993]=1992\n.[0][1994]=1993\n.[0][1995]=1994\n.[0][1996]=1995\n.[0][1997]=1996\n.[0][1998]=1997\n.[0][1999]=1998\n.[0][2000]=1999\n.[0][2001]=2000\n.[0][2002]=2001\n.[0][2003]=2002\n.[0][2004]=2003\n.[0][2005]=2004\n.[0][2006]=2005\n.[0][2007]=2006\n.[0][2008]=2007\n.[0][2009]=2008\n.[0][2010]=2009\n.[0][2011]=2010\n.[0][2012]=2011\n.[0][2013]=2012\n.[0][2014]=2013\n.[0][2015]=2014\n.[0][2016]=2015\n.[0][2017]=2016\n.[0][2018]=2017\n.[0][2019]=2018\n.[0][2020]=2019\n.[0][2021]=2020\n.[0][2022]=2021\n.[0][2023]=2022\n.[0][2024]=2023\n.[0][2025]=2024\n.[0][2026]=2025\n.[0][2027]=2026\n.[0][2028]=2027\n.[0][2029]=2028\n.[0][2030]=2029\n.[0][2031]=2030\n.[0][2032]=2031\n.[0][2033]=2032\n.[0][2034]=2033\n.[0][2035]=2034\n.[0][2036]=2035\n.[0][2037]=2036\n.[0][2038]=2037\n.[0][2039]=2038\n.[0][2040]=2039\n.[0][2041]=2040\n.[0][2042]=2041\n.[0][2043]=2042\n.[0][2044]=2043\n.[0][2045]=2044\n.[0][2046]=2045\n.[0][2047]=2046\n.[0][2048]=2047\n.[0][2049]=2048\n.[0][2050]=2049\n.[0][2051]=2050\n.[0][2052]=2051\n.[0][2053]=2052\n.[0][2054]=2053\n.[0][2055]=2054\n.[0][2056]=2055\n.[0][2057]=2056\n.[0][2058]=2057\n.[0][2059]=2058\n.[0][2060]=2059\n.[0][2061]=2060\n.[0][2062]=2061\n.[0][2063]=2062\n.[0][2064]=2063\n.[0][2065]=2064\n.[0][2066]=2065\n.[0][2067]=2066\n.[0][2068]=2067\n.[0][2069]=2068\n.[0][2070]=2069\n.[0][2071]=2070\n.[0][2072]=2071\n.[0][2073]=2072\n.[0][2074]=2073\n.[0][2075]=2074\n.[0][2076]=2075\n.[0][2077]=2076\n.[0][2078]=2077\n.[0][2079]=2078\n.[0][2080]=2079\n.[0][2081]=2080\n.[0][2082]=2081\n.[0][2083]=2082\n.[0][2084]=2083\n.[0][2085]=2084\n.[0][2086]=2085\n.[0][2087]=2086\n.[0][2088]=2087\n.[0][2089]=2088\n.[0][2090]=2089\n.[0][2091]=2090\n.[0][2092]=2091\n.[0][2093]=2092\n.[0][2094]=2093\n.[0][2095]=2094\n.[0][2096]=2095\n.[0][2097]=2096\n.[0][2098]=2097\n.[0][2099]=2098\n.[0][2100]=2099\n.[0][2101]=2100\n.[0][2102]=2101\n.[0][2103]=2102\n.[0][2104]=2103\n.[0][2105]=2104\n.[0][2106]=2105\n.[0][2107]=2106\n.[0][2108]=2107\n.[0][2109]=2108\n.[0][2110]=2109\n.[0][2111]=2110\n.[0][2112]=2111\n.[0][2113]=2112\n.[0][2114]=2113\n.[0][2115]=2114\n.[0][2116]=2115\n.[0][2117]=2116\n.[0][2118]=2117\n.[0][2119]=2118\n"
  },
  {
    "path": "test/data/legacy_test_array_07.json",
    "content": "[[\"A\",0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118]\n]"
  },
  {
    "path": "test/data/legacy_test_basic_01.expected",
    "content": ".=123456789\n"
  },
  {
    "path": "test/data/legacy_test_basic_01.json",
    "content": "0123456789\n"
  },
  {
    "path": "test/data/legacy_test_basic_02.expected",
    "content": ".=-123456789\n"
  },
  {
    "path": "test/data/legacy_test_basic_02.json",
    "content": "-0123456789\n"
  },
  {
    "path": "test/data/legacy_test_basic_03.expected",
    "content": ".=1.2345678\n\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_03.json",
    "content": "1.2345678\n\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_04.expected",
    "content": ".=\"abcdef\"\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_04.json",
    "content": "\"abcdef\"\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_05.expected",
    "content": ".=null\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_05.json",
    "content": "null\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_06.expected",
    "content": ".=true\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_06.json",
    "content": "true\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_07.expected",
    "content": ".=false\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_07.json",
    "content": "false\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_08.expected",
    "content": "// C++ style comment\n.=null\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_08.json",
    "content": "// C++ style comment\nnull\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_09.expected",
    "content": "/* C style comment\n */\n.=null\n\n"
  },
  {
    "path": "test/data/legacy_test_basic_09.json",
    "content": "/* C style comment\n */\nnull\n\n"
  },
  {
    "path": "test/data/legacy_test_comment_00.expected",
    "content": "// Comment for array\n.=[]\n// Comment within array\n.[0]=\"one-element\"\n"
  },
  {
    "path": "test/data/legacy_test_comment_00.json",
    "content": "// Comment for array\n[\n   // Comment within array\n   \"one-element\"\n]\n"
  },
  {
    "path": "test/data/legacy_test_comment_01.expected",
    "content": ".={}\n// Comment for array\n.test=[]\n// Comment within array\n.test[0]={}\n.test[0].a=\"aaa\"\n.test[1]={}\n.test[1].b=\"bbb\"\n.test[2]={}\n.test[2].c=\"ccc\"\n"
  },
  {
    "path": "test/data/legacy_test_comment_01.json",
    "content": "{\n    \"test\":\n    // Comment for array\n    [\n       // Comment within array\n       { \"a\" : \"aaa\" }, // Comment for a\n       { \"b\" : \"bbb\" }, // Comment for b\n       { \"c\" : \"ccc\" } // Comment for c\n    ]\n}\n"
  },
  {
    "path": "test/data/legacy_test_comment_02.expected",
    "content": ".={}\n/* C-style comment\n\n    C-style-2 comment */\n.c-test={}\n.c-test.a=1\n/* Internal comment c-style */\n.c-test.b=2\n// C++-style comment\n.cpp-test={}\n// Multiline comment cpp-style\n// Second line\n.cpp-test.c=3\n// Comment before double\n.cpp-test.d=4.1\n// Comment before string\n.cpp-test.e=\"e-string\"\n// Comment before true\n.cpp-test.f=true\n// Comment before false\n.cpp-test.g=false\n// Comment before null\n.cpp-test.h=null\n"
  },
  {
    "path": "test/data/legacy_test_comment_02.json",
    "content": "{\n   /* C-style comment\n\n    C-style-2 comment */\n   \"c-test\" : {\n      \"a\" : 1,\n      /* Internal comment c-style */\n      \"b\" : 2\n   },\n   // C++-style comment\n   \"cpp-test\" : {\n      // Multiline comment cpp-style\n      // Second line\n      \"c\" : 3,\n      // Comment before double\n      \"d\" : 4.1,\n      // Comment before string\n      \"e\" : \"e-string\",\n      // Comment before true\n      \"f\" : true,\n      // Comment before false\n      \"g\" : false,\n      // Comment before null\n      \"h\" : null\n   }\n}\n"
  },
  {
    "path": "test/data/legacy_test_complex_01.expected",
    "content": ".={}\n.attribute=[]\n.attribute[0]=\"random\"\n.attribute[1]=\"short\"\n.attribute[2]=\"bold\"\n.attribute[3]=12\n.attribute[4]={}\n.attribute[4].height=7\n.attribute[4].width=64\n.count=1234\n.name={}\n.name.aka=\"T.E.S.T.\"\n.name.id=123987\n.test={}\n.test.1={}\n.test.1.2={}\n.test.1.2.3={}\n.test.1.2.3.coord=[]\n.test.1.2.3.coord[0]=1\n.test.1.2.3.coord[1]=2\n"
  },
  {
    "path": "test/data/legacy_test_complex_01.json",
    "content": "{\n\t\"count\" : 1234,\n\t\"name\" : { \"aka\" : \"T.E.S.T.\", \"id\" : 123987 },\n\t\"attribute\" : [\n\t\t\"random\",\n\t\t\"short\",\n\t\t\"bold\",\n\t\t12,\n\t\t{ \"height\" : 7, \"width\" : 64 }\n\t\t],\n\t\"test\": { \"1\" :\n\t\t{ \"2\" :\n\t\t\t{ \"3\" :  { \"coord\" : [ 1,2] }\n\t\t\t}\n\t\t}\n\t}\n}\n"
  },
  {
    "path": "test/data/legacy_test_integer_01.expected",
    "content": "// Max signed integer\n.=2147483647\n"
  },
  {
    "path": "test/data/legacy_test_integer_01.json",
    "content": "// Max signed integer\n2147483647\n"
  },
  {
    "path": "test/data/legacy_test_integer_02.expected",
    "content": "// Min signed integer\n.=-2147483648\n"
  },
  {
    "path": "test/data/legacy_test_integer_02.json",
    "content": "// Min signed integer\n-2147483648\n"
  },
  {
    "path": "test/data/legacy_test_integer_03.expected",
    "content": "// Max unsigned integer\n.=4294967295\n"
  },
  {
    "path": "test/data/legacy_test_integer_03.json",
    "content": "// Max unsigned integer\n4294967295\n"
  },
  {
    "path": "test/data/legacy_test_integer_04.expected",
    "content": "// Min unsigned integer\n.=0\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_04.json",
    "content": "// Min unsigned integer\n0\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_05.expected",
    "content": ".=1\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_05.json",
    "content": "1\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_06_64bits.expected",
    "content": ".=9223372036854775808\n"
  },
  {
    "path": "test/data/legacy_test_integer_06_64bits.json",
    "content": "9223372036854775808\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_07_64bits.expected",
    "content": ".=-9223372036854775808\n"
  },
  {
    "path": "test/data/legacy_test_integer_07_64bits.json",
    "content": "-9223372036854775808\n\n"
  },
  {
    "path": "test/data/legacy_test_integer_08_64bits.expected",
    "content": ".=18446744073709551615\n"
  },
  {
    "path": "test/data/legacy_test_integer_08_64bits.json",
    "content": "18446744073709551615\n\n"
  },
  {
    "path": "test/data/legacy_test_large_01.expected",
    "content": ".=[]\n.[0]=[]\n.[0][0]=\"A\"\n.[0][1]=0\n.[0][2]=1\n.[0][3]=2\n.[0][4]=3\n.[0][5]=4\n.[0][6]=5\n.[0][7]=6\n.[0][8]=7\n.[0][9]=8\n.[0][10]=9\n.[0][11]=10\n.[0][12]=11\n.[0][13]=12\n.[0][14]=13\n.[0][15]=14\n.[0][16]=15\n.[0][17]=16\n.[0][18]=17\n.[0][19]=18\n.[0][20]=19\n.[0][21]=20\n.[0][22]=21\n.[0][23]=22\n.[0][24]=23\n.[0][25]=24\n.[0][26]=25\n.[0][27]=26\n.[0][28]=27\n.[0][29]=28\n.[0][30]=29\n.[0][31]=30\n.[0][32]=31\n.[0][33]=32\n.[0][34]=33\n.[0][35]=34\n.[0][36]=35\n.[0][37]=36\n.[0][38]=37\n.[0][39]=38\n.[0][40]=39\n.[0][41]=40\n.[0][42]=41\n.[0][43]=42\n.[0][44]=43\n.[0][45]=44\n.[0][46]=45\n.[0][47]=46\n.[0][48]=47\n.[0][49]=48\n.[0][50]=49\n.[0][51]=50\n.[0][52]=51\n.[0][53]=52\n.[0][54]=53\n.[0][55]=54\n.[0][56]=55\n.[0][57]=56\n.[0][58]=57\n.[0][59]=58\n.[0][60]=59\n.[0][61]=60\n.[0][62]=61\n.[0][63]=62\n.[0][64]=63\n.[0][65]=64\n.[0][66]=65\n.[0][67]=66\n.[0][68]=67\n.[0][69]=68\n.[0][70]=69\n.[0][71]=70\n.[0][72]=71\n.[0][73]=72\n.[0][74]=73\n.[0][75]=74\n.[0][76]=75\n.[0][77]=76\n.[0][78]=77\n.[0][79]=78\n.[0][80]=79\n.[0][81]=80\n.[0][82]=81\n.[0][83]=82\n.[0][84]=83\n.[0][85]=84\n.[0][86]=85\n.[0][87]=86\n.[0][88]=87\n.[0][89]=88\n.[0][90]=89\n.[0][91]=90\n.[0][92]=91\n.[0][93]=92\n.[0][94]=93\n.[0][95]=94\n.[0][96]=95\n.[0][97]=96\n.[0][98]=97\n.[0][99]=98\n.[0][100]=99\n.[0][101]=100\n.[0][102]=101\n.[0][103]=102\n.[0][104]=103\n.[0][105]=104\n.[0][106]=105\n.[0][107]=106\n.[0][108]=107\n.[0][109]=108\n.[0][110]=109\n.[0][111]=110\n.[0][112]=111\n.[0][113]=112\n.[0][114]=113\n.[0][115]=114\n.[0][116]=115\n.[0][117]=116\n.[0][118]=117\n.[0][119]=118\n.[0][120]=119\n.[0][121]=120\n.[0][122]=121\n.[0][123]=122\n.[0][124]=123\n.[0][125]=124\n.[0][126]=125\n.[0][127]=126\n.[0][128]=127\n.[0][129]=128\n.[0][130]=129\n.[0][131]=130\n.[0][132]=131\n.[0][133]=132\n.[0][134]=133\n.[0][135]=134\n.[0][136]=135\n.[0][137]=136\n.[0][138]=137\n.[0][139]=138\n.[0][140]=139\n.[0][141]=140\n.[0][142]=141\n.[0][143]=142\n.[0][144]=143\n.[0][145]=144\n.[0][146]=145\n.[0][147]=146\n.[0][148]=147\n.[0][149]=148\n.[0][150]=149\n.[0][151]=150\n.[0][152]=151\n.[0][153]=152\n.[0][154]=153\n.[0][155]=154\n.[0][156]=155\n.[0][157]=156\n.[0][158]=157\n.[0][159]=158\n.[0][160]=159\n.[0][161]=160\n.[0][162]=161\n.[0][163]=162\n.[0][164]=163\n.[0][165]=164\n.[0][166]=165\n.[0][167]=166\n.[0][168]=167\n.[0][169]=168\n.[0][170]=169\n.[0][171]=170\n.[0][172]=171\n.[0][173]=172\n.[0][174]=173\n.[0][175]=174\n.[0][176]=175\n.[0][177]=176\n.[0][178]=177\n.[0][179]=178\n.[0][180]=179\n.[0][181]=180\n.[0][182]=181\n.[0][183]=182\n.[0][184]=183\n.[0][185]=184\n.[0][186]=185\n.[0][187]=186\n.[0][188]=187\n.[0][189]=188\n.[0][190]=189\n.[0][191]=190\n.[0][192]=191\n.[0][193]=192\n.[0][194]=193\n.[0][195]=194\n.[0][196]=195\n.[0][197]=196\n.[0][198]=197\n.[0][199]=198\n.[0][200]=199\n.[0][201]=200\n.[0][202]=201\n.[0][203]=202\n.[0][204]=203\n.[0][205]=204\n.[0][206]=205\n.[0][207]=206\n.[0][208]=207\n.[0][209]=208\n.[0][210]=209\n.[0][211]=210\n.[0][212]=211\n.[0][213]=212\n.[0][214]=213\n.[0][215]=214\n.[0][216]=215\n.[0][217]=216\n.[0][218]=217\n.[0][219]=218\n.[0][220]=219\n.[0][221]=220\n.[0][222]=221\n.[0][223]=222\n.[0][224]=223\n.[0][225]=224\n.[0][226]=225\n.[0][227]=226\n.[0][228]=227\n.[0][229]=228\n.[0][230]=229\n.[0][231]=230\n.[0][232]=231\n.[0][233]=232\n.[0][234]=233\n.[0][235]=234\n.[0][236]=235\n.[0][237]=236\n.[0][238]=237\n.[0][239]=238\n.[0][240]=239\n.[0][241]=240\n.[0][242]=241\n.[0][243]=242\n.[0][244]=243\n.[0][245]=244\n.[0][246]=245\n.[0][247]=246\n.[0][248]=247\n.[0][249]=248\n.[0][250]=249\n.[0][251]=250\n.[0][252]=251\n.[0][253]=252\n.[0][254]=253\n.[0][255]=254\n.[0][256]=255\n.[0][257]=256\n.[0][258]=257\n.[0][259]=258\n.[0][260]=259\n.[0][261]=260\n.[0][262]=261\n.[0][263]=262\n.[0][264]=263\n.[0][265]=264\n.[0][266]=265\n.[0][267]=266\n.[0][268]=267\n.[0][269]=268\n.[0][270]=269\n.[0][271]=270\n.[0][272]=271\n.[0][273]=272\n.[0][274]=273\n.[0][275]=274\n.[0][276]=275\n.[0][277]=276\n.[0][278]=277\n.[0][279]=278\n.[0][280]=279\n.[0][281]=280\n.[0][282]=281\n.[0][283]=282\n.[0][284]=283\n.[0][285]=284\n.[0][286]=285\n.[0][287]=286\n.[0][288]=287\n.[0][289]=288\n.[0][290]=289\n.[0][291]=290\n.[0][292]=291\n.[0][293]=292\n.[0][294]=293\n.[0][295]=294\n.[0][296]=295\n.[0][297]=296\n.[0][298]=297\n.[0][299]=298\n.[0][300]=299\n.[0][301]=300\n.[0][302]=301\n.[0][303]=302\n.[0][304]=303\n.[0][305]=304\n.[0][306]=305\n.[0][307]=306\n.[0][308]=307\n.[0][309]=308\n.[0][310]=309\n.[0][311]=310\n.[0][312]=311\n.[0][313]=312\n.[0][314]=313\n.[0][315]=314\n.[0][316]=315\n.[0][317]=316\n.[0][318]=317\n.[0][319]=318\n.[0][320]=319\n.[0][321]=320\n.[0][322]=321\n.[0][323]=322\n.[0][324]=323\n.[0][325]=324\n.[0][326]=325\n.[0][327]=326\n.[0][328]=327\n.[0][329]=328\n.[0][330]=329\n.[0][331]=330\n.[0][332]=331\n.[0][333]=332\n.[0][334]=333\n.[0][335]=334\n.[0][336]=335\n.[0][337]=336\n.[0][338]=337\n.[0][339]=338\n.[0][340]=339\n.[0][341]=340\n.[0][342]=341\n.[0][343]=342\n.[0][344]=343\n.[0][345]=344\n.[0][346]=345\n.[0][347]=346\n.[0][348]=347\n.[0][349]=348\n.[0][350]=349\n.[0][351]=350\n.[0][352]=351\n.[0][353]=352\n.[0][354]=353\n.[0][355]=354\n.[0][356]=355\n.[0][357]=356\n.[0][358]=357\n.[0][359]=358\n.[0][360]=359\n.[0][361]=360\n.[0][362]=361\n.[0][363]=362\n.[0][364]=363\n.[0][365]=364\n.[0][366]=365\n.[0][367]=366\n.[0][368]=367\n.[0][369]=368\n.[0][370]=369\n.[0][371]=370\n.[0][372]=371\n.[0][373]=372\n.[0][374]=373\n.[0][375]=374\n.[0][376]=375\n.[0][377]=376\n.[0][378]=377\n.[0][379]=378\n.[0][380]=379\n.[0][381]=380\n.[0][382]=381\n.[0][383]=382\n.[0][384]=383\n.[0][385]=384\n.[0][386]=385\n.[0][387]=386\n.[0][388]=387\n.[0][389]=388\n.[0][390]=389\n.[0][391]=390\n.[0][392]=391\n.[0][393]=392\n.[0][394]=393\n.[0][395]=394\n.[0][396]=395\n.[0][397]=396\n.[0][398]=397\n.[0][399]=398\n.[0][400]=399\n.[0][401]=400\n.[0][402]=401\n.[0][403]=402\n.[0][404]=403\n.[0][405]=404\n.[0][406]=405\n.[0][407]=406\n.[0][408]=407\n.[0][409]=408\n.[0][410]=409\n.[0][411]=410\n.[0][412]=411\n.[0][413]=412\n.[0][414]=413\n.[0][415]=414\n.[0][416]=415\n.[0][417]=416\n.[0][418]=417\n.[0][419]=418\n.[0][420]=419\n.[0][421]=420\n.[0][422]=421\n.[0][423]=422\n.[0][424]=423\n.[0][425]=424\n.[0][426]=425\n.[0][427]=426\n.[0][428]=427\n.[0][429]=428\n.[0][430]=429\n.[0][431]=430\n.[0][432]=431\n.[0][433]=432\n.[0][434]=433\n.[0][435]=434\n.[0][436]=435\n.[0][437]=436\n.[0][438]=437\n.[0][439]=438\n.[0][440]=439\n.[0][441]=440\n.[0][442]=441\n.[0][443]=442\n.[0][444]=443\n.[0][445]=444\n.[0][446]=445\n.[0][447]=446\n.[0][448]=447\n.[0][449]=448\n.[0][450]=449\n.[0][451]=450\n.[0][452]=451\n.[0][453]=452\n.[0][454]=453\n.[0][455]=454\n.[0][456]=455\n.[0][457]=456\n.[0][458]=457\n.[0][459]=458\n.[0][460]=459\n.[0][461]=460\n.[0][462]=461\n.[0][463]=462\n.[0][464]=463\n.[0][465]=464\n.[0][466]=465\n.[0][467]=466\n.[0][468]=467\n.[0][469]=468\n.[0][470]=469\n.[0][471]=470\n.[0][472]=471\n.[0][473]=472\n.[0][474]=473\n.[0][475]=474\n.[0][476]=475\n.[0][477]=476\n.[0][478]=477\n.[0][479]=478\n.[0][480]=479\n.[0][481]=480\n.[0][482]=481\n.[0][483]=482\n.[0][484]=483\n.[0][485]=484\n.[0][486]=485\n.[0][487]=486\n.[0][488]=487\n.[0][489]=488\n.[0][490]=489\n.[0][491]=490\n.[0][492]=491\n.[0][493]=492\n.[0][494]=493\n.[0][495]=494\n.[0][496]=495\n.[0][497]=496\n.[0][498]=497\n.[0][499]=498\n.[0][500]=499\n.[0][501]=500\n.[0][502]=501\n.[0][503]=502\n.[0][504]=503\n.[0][505]=504\n.[0][506]=505\n.[0][507]=506\n.[0][508]=507\n.[0][509]=508\n.[0][510]=509\n.[0][511]=510\n.[0][512]=511\n.[0][513]=512\n.[0][514]=513\n.[0][515]=514\n.[0][516]=515\n.[0][517]=516\n.[0][518]=517\n.[0][519]=518\n.[0][520]=519\n.[0][521]=520\n.[0][522]=521\n.[0][523]=522\n.[0][524]=523\n.[0][525]=524\n.[0][526]=525\n.[0][527]=526\n.[0][528]=527\n.[0][529]=528\n.[0][530]=529\n.[0][531]=530\n.[0][532]=531\n.[0][533]=532\n.[0][534]=533\n.[0][535]=534\n.[0][536]=535\n.[0][537]=536\n.[0][538]=537\n.[0][539]=538\n.[0][540]=539\n.[0][541]=540\n.[0][542]=541\n.[0][543]=542\n.[0][544]=543\n.[0][545]=544\n.[0][546]=545\n.[0][547]=546\n.[0][548]=547\n.[0][549]=548\n.[0][550]=549\n.[0][551]=550\n.[0][552]=551\n.[0][553]=552\n.[0][554]=553\n.[0][555]=554\n.[0][556]=555\n.[0][557]=556\n.[0][558]=557\n.[0][559]=558\n.[0][560]=559\n.[0][561]=560\n.[0][562]=561\n.[0][563]=562\n.[0][564]=563\n.[0][565]=564\n.[0][566]=565\n.[0][567]=566\n.[0][568]=567\n.[0][569]=568\n.[0][570]=569\n.[0][571]=570\n.[0][572]=571\n.[0][573]=572\n.[0][574]=573\n.[0][575]=574\n.[0][576]=575\n.[0][577]=576\n.[0][578]=577\n.[0][579]=578\n.[0][580]=579\n.[0][581]=580\n.[0][582]=581\n.[0][583]=582\n.[0][584]=583\n.[0][585]=584\n.[0][586]=585\n.[0][587]=586\n.[0][588]=587\n.[0][589]=588\n.[0][590]=589\n.[0][591]=590\n.[0][592]=591\n.[0][593]=592\n.[0][594]=593\n.[0][595]=594\n.[0][596]=595\n.[0][597]=596\n.[0][598]=597\n.[0][599]=598\n.[0][600]=599\n.[0][601]=600\n.[0][602]=601\n.[0][603]=602\n.[0][604]=603\n.[0][605]=604\n.[0][606]=605\n.[0][607]=606\n.[0][608]=607\n.[0][609]=608\n.[0][610]=609\n.[0][611]=610\n.[0][612]=611\n.[0][613]=612\n.[0][614]=613\n.[0][615]=614\n.[0][616]=615\n.[0][617]=616\n.[0][618]=617\n.[0][619]=618\n.[0][620]=619\n.[0][621]=620\n.[0][622]=621\n.[0][623]=622\n.[0][624]=623\n.[0][625]=624\n.[0][626]=625\n.[0][627]=626\n.[0][628]=627\n.[0][629]=628\n.[0][630]=629\n.[0][631]=630\n.[0][632]=631\n.[0][633]=632\n.[0][634]=633\n.[0][635]=634\n.[0][636]=635\n.[0][637]=636\n.[0][638]=637\n.[0][639]=638\n.[0][640]=639\n.[0][641]=640\n.[0][642]=641\n.[0][643]=642\n.[0][644]=643\n.[0][645]=644\n.[0][646]=645\n.[0][647]=646\n.[0][648]=647\n.[0][649]=648\n.[0][650]=649\n.[0][651]=650\n.[0][652]=651\n.[0][653]=652\n.[0][654]=653\n.[0][655]=654\n.[0][656]=655\n.[0][657]=656\n.[0][658]=657\n.[0][659]=658\n.[0][660]=659\n.[0][661]=660\n.[0][662]=661\n.[0][663]=662\n.[0][664]=663\n.[0][665]=664\n.[0][666]=665\n.[0][667]=666\n.[0][668]=667\n.[0][669]=668\n.[0][670]=669\n.[0][671]=670\n.[0][672]=671\n.[0][673]=672\n.[0][674]=673\n.[0][675]=674\n.[0][676]=675\n.[0][677]=676\n.[0][678]=677\n.[0][679]=678\n.[0][680]=679\n.[0][681]=680\n.[0][682]=681\n.[0][683]=682\n.[0][684]=683\n.[0][685]=684\n.[0][686]=685\n.[0][687]=686\n.[0][688]=687\n.[0][689]=688\n.[0][690]=689\n.[0][691]=690\n.[0][692]=691\n.[0][693]=692\n.[0][694]=693\n.[0][695]=694\n.[0][696]=695\n.[0][697]=696\n.[0][698]=697\n.[0][699]=698\n.[0][700]=699\n.[0][701]=700\n.[0][702]=701\n.[0][703]=702\n.[0][704]=703\n.[0][705]=704\n.[0][706]=705\n.[0][707]=706\n.[0][708]=707\n.[0][709]=708\n.[0][710]=709\n.[0][711]=710\n.[0][712]=711\n.[0][713]=712\n.[0][714]=713\n.[0][715]=714\n.[0][716]=715\n.[0][717]=716\n.[0][718]=717\n.[0][719]=718\n.[0][720]=719\n.[0][721]=720\n.[0][722]=721\n.[0][723]=722\n.[0][724]=723\n.[0][725]=724\n.[0][726]=725\n.[0][727]=726\n.[0][728]=727\n.[0][729]=728\n.[0][730]=729\n.[0][731]=730\n.[0][732]=731\n.[0][733]=732\n.[0][734]=733\n.[0][735]=734\n.[0][736]=735\n.[0][737]=736\n.[0][738]=737\n.[0][739]=738\n.[0][740]=739\n.[0][741]=740\n.[0][742]=741\n.[0][743]=742\n.[0][744]=743\n.[0][745]=744\n.[0][746]=745\n.[0][747]=746\n.[0][748]=747\n.[0][749]=748\n.[0][750]=749\n.[0][751]=750\n.[0][752]=751\n.[0][753]=752\n.[0][754]=753\n.[0][755]=754\n.[0][756]=755\n.[0][757]=756\n.[0][758]=757\n.[0][759]=758\n.[0][760]=759\n.[0][761]=760\n.[0][762]=761\n.[0][763]=762\n.[0][764]=763\n.[0][765]=764\n.[0][766]=765\n.[0][767]=766\n.[0][768]=767\n.[0][769]=768\n.[0][770]=769\n.[0][771]=770\n.[0][772]=771\n.[0][773]=772\n.[0][774]=773\n.[0][775]=774\n.[0][776]=775\n.[0][777]=776\n.[0][778]=777\n.[0][779]=778\n.[0][780]=779\n.[0][781]=780\n.[0][782]=781\n.[0][783]=782\n.[0][784]=783\n.[0][785]=784\n.[0][786]=785\n.[0][787]=786\n.[0][788]=787\n.[0][789]=788\n.[0][790]=789\n.[0][791]=790\n.[0][792]=791\n.[0][793]=792\n.[0][794]=793\n.[0][795]=794\n.[0][796]=795\n.[0][797]=796\n.[0][798]=797\n.[0][799]=798\n.[0][800]=799\n.[0][801]=800\n.[0][802]=801\n.[0][803]=802\n.[0][804]=803\n.[0][805]=804\n.[0][806]=805\n.[0][807]=806\n.[0][808]=807\n.[0][809]=808\n.[0][810]=809\n.[0][811]=810\n.[0][812]=811\n.[0][813]=812\n.[0][814]=813\n.[0][815]=814\n.[0][816]=815\n.[0][817]=816\n.[0][818]=817\n.[0][819]=818\n.[0][820]=819\n.[0][821]=820\n.[0][822]=821\n.[0][823]=822\n.[0][824]=823\n.[0][825]=824\n.[0][826]=825\n.[0][827]=826\n.[0][828]=827\n.[0][829]=828\n.[0][830]=829\n.[0][831]=830\n.[0][832]=831\n.[0][833]=832\n.[0][834]=833\n.[0][835]=834\n.[0][836]=835\n.[0][837]=836\n.[0][838]=837\n.[0][839]=838\n.[0][840]=839\n.[0][841]=840\n.[0][842]=841\n.[0][843]=842\n.[0][844]=843\n.[0][845]=844\n.[0][846]=845\n.[0][847]=846\n.[0][848]=847\n.[0][849]=848\n.[0][850]=849\n.[0][851]=850\n.[0][852]=851\n.[0][853]=852\n.[0][854]=853\n.[0][855]=854\n.[0][856]=855\n.[0][857]=856\n.[0][858]=857\n.[0][859]=858\n.[0][860]=859\n.[0][861]=860\n.[0][862]=861\n.[0][863]=862\n.[0][864]=863\n.[0][865]=864\n.[0][866]=865\n.[0][867]=866\n.[0][868]=867\n.[0][869]=868\n.[0][870]=869\n.[0][871]=870\n.[0][872]=871\n.[0][873]=872\n.[0][874]=873\n.[0][875]=874\n.[0][876]=875\n.[0][877]=876\n.[0][878]=877\n.[0][879]=878\n.[0][880]=879\n.[0][881]=880\n.[0][882]=881\n.[0][883]=882\n.[0][884]=883\n.[0][885]=884\n.[0][886]=885\n.[0][887]=886\n.[0][888]=887\n.[0][889]=888\n.[0][890]=889\n.[0][891]=890\n.[0][892]=891\n.[0][893]=892\n.[0][894]=893\n.[0][895]=894\n.[0][896]=895\n.[0][897]=896\n.[0][898]=897\n.[0][899]=898\n.[0][900]=899\n.[0][901]=900\n.[0][902]=901\n.[0][903]=902\n.[0][904]=903\n.[0][905]=904\n.[0][906]=905\n.[0][907]=906\n.[0][908]=907\n.[0][909]=908\n.[0][910]=909\n.[0][911]=910\n.[0][912]=911\n.[0][913]=912\n.[0][914]=913\n.[0][915]=914\n.[0][916]=915\n.[0][917]=916\n.[0][918]=917\n.[0][919]=918\n.[0][920]=919\n.[0][921]=920\n.[0][922]=921\n.[0][923]=922\n.[0][924]=923\n.[0][925]=924\n.[0][926]=925\n.[0][927]=926\n.[0][928]=927\n.[0][929]=928\n.[0][930]=929\n.[0][931]=930\n.[0][932]=931\n.[0][933]=932\n.[0][934]=933\n.[0][935]=934\n.[0][936]=935\n.[0][937]=936\n.[0][938]=937\n.[0][939]=938\n.[0][940]=939\n.[0][941]=940\n.[0][942]=941\n.[0][943]=942\n.[0][944]=943\n.[0][945]=944\n.[0][946]=945\n.[0][947]=946\n.[0][948]=947\n.[0][949]=948\n.[0][950]=949\n.[0][951]=950\n.[0][952]=951\n.[0][953]=952\n.[0][954]=953\n.[0][955]=954\n.[0][956]=955\n.[0][957]=956\n.[0][958]=957\n.[0][959]=958\n.[0][960]=959\n.[0][961]=960\n.[0][962]=961\n.[0][963]=962\n.[0][964]=963\n.[0][965]=964\n.[0][966]=965\n.[0][967]=966\n.[0][968]=967\n.[0][969]=968\n.[0][970]=969\n.[0][971]=970\n.[0][972]=971\n.[0][973]=972\n.[0][974]=973\n.[0][975]=974\n.[0][976]=975\n.[0][977]=976\n.[0][978]=977\n.[0][979]=978\n.[0][980]=979\n.[0][981]=980\n.[0][982]=981\n.[0][983]=982\n.[0][984]=983\n.[0][985]=984\n.[0][986]=985\n.[0][987]=986\n.[0][988]=987\n.[0][989]=988\n.[0][990]=989\n.[0][991]=990\n.[0][992]=991\n.[0][993]=992\n.[0][994]=993\n.[0][995]=994\n.[0][996]=995\n.[0][997]=996\n.[0][998]=997\n.[0][999]=998\n.[0][1000]=999\n.[0][1001]=1000\n.[0][1002]=1001\n.[0][1003]=1002\n.[0][1004]=1003\n.[0][1005]=1004\n.[0][1006]=1005\n.[0][1007]=1006\n.[0][1008]=1007\n.[0][1009]=1008\n.[0][1010]=1009\n.[0][1011]=1010\n.[0][1012]=1011\n.[0][1013]=1012\n.[0][1014]=1013\n.[0][1015]=1014\n.[0][1016]=1015\n.[0][1017]=1016\n.[0][1018]=1017\n.[0][1019]=1018\n.[0][1020]=1019\n.[0][1021]=1020\n.[0][1022]=1021\n.[0][1023]=1022\n.[0][1024]=1023\n.[0][1025]=1024\n.[0][1026]=1025\n.[0][1027]=1026\n.[0][1028]=1027\n.[0][1029]=1028\n.[0][1030]=1029\n.[0][1031]=1030\n.[0][1032]=1031\n.[0][1033]=1032\n.[0][1034]=1033\n.[0][1035]=1034\n.[0][1036]=1035\n.[0][1037]=1036\n.[0][1038]=1037\n.[0][1039]=1038\n.[0][1040]=1039\n.[0][1041]=1040\n.[0][1042]=1041\n.[0][1043]=1042\n.[0][1044]=1043\n.[0][1045]=1044\n.[0][1046]=1045\n.[0][1047]=1046\n.[0][1048]=1047\n.[0][1049]=1048\n.[0][1050]=1049\n.[0][1051]=1050\n.[0][1052]=1051\n.[0][1053]=1052\n.[0][1054]=1053\n.[0][1055]=1054\n.[0][1056]=1055\n.[0][1057]=1056\n.[0][1058]=1057\n.[0][1059]=1058\n.[0][1060]=1059\n.[0][1061]=1060\n.[0][1062]=1061\n.[0][1063]=1062\n.[0][1064]=1063\n.[0][1065]=1064\n.[0][1066]=1065\n.[0][1067]=1066\n.[0][1068]=1067\n.[0][1069]=1068\n.[0][1070]=1069\n.[0][1071]=1070\n.[0][1072]=1071\n.[0][1073]=1072\n.[0][1074]=1073\n.[0][1075]=1074\n.[0][1076]=1075\n.[0][1077]=1076\n.[0][1078]=1077\n.[0][1079]=1078\n.[0][1080]=1079\n.[0][1081]=1080\n.[0][1082]=1081\n.[0][1083]=1082\n.[0][1084]=1083\n.[0][1085]=1084\n.[0][1086]=1085\n.[0][1087]=1086\n.[0][1088]=1087\n.[0][1089]=1088\n.[0][1090]=1089\n.[0][1091]=1090\n.[0][1092]=1091\n.[0][1093]=1092\n.[0][1094]=1093\n.[0][1095]=1094\n.[0][1096]=1095\n.[0][1097]=1096\n.[0][1098]=1097\n.[0][1099]=1098\n.[0][1100]=1099\n.[0][1101]=1100\n.[0][1102]=1101\n.[0][1103]=1102\n.[0][1104]=1103\n.[0][1105]=1104\n.[0][1106]=1105\n.[0][1107]=1106\n.[0][1108]=1107\n.[0][1109]=1108\n.[0][1110]=1109\n.[0][1111]=1110\n.[0][1112]=1111\n.[0][1113]=1112\n.[0][1114]=1113\n.[0][1115]=1114\n.[0][1116]=1115\n.[0][1117]=1116\n.[0][1118]=1117\n.[0][1119]=1118\n.[0][1120]=1119\n.[0][1121]=1120\n.[0][1122]=1121\n.[0][1123]=1122\n.[0][1124]=1123\n.[0][1125]=1124\n.[0][1126]=1125\n.[0][1127]=1126\n.[0][1128]=1127\n.[0][1129]=1128\n.[0][1130]=1129\n.[0][1131]=1130\n.[0][1132]=1131\n.[0][1133]=1132\n.[0][1134]=1133\n.[0][1135]=1134\n.[0][1136]=1135\n.[0][1137]=1136\n.[0][1138]=1137\n.[0][1139]=1138\n.[0][1140]=1139\n.[0][1141]=1140\n.[0][1142]=1141\n.[0][1143]=1142\n.[0][1144]=1143\n.[0][1145]=1144\n.[0][1146]=1145\n.[0][1147]=1146\n.[0][1148]=1147\n.[0][1149]=1148\n.[0][1150]=1149\n.[0][1151]=1150\n.[0][1152]=1151\n.[0][1153]=1152\n.[0][1154]=1153\n.[0][1155]=1154\n.[0][1156]=1155\n.[0][1157]=1156\n.[0][1158]=1157\n.[0][1159]=1158\n.[0][1160]=1159\n.[0][1161]=1160\n.[0][1162]=1161\n.[0][1163]=1162\n.[0][1164]=1163\n.[0][1165]=1164\n.[0][1166]=1165\n.[0][1167]=1166\n.[0][1168]=1167\n.[0][1169]=1168\n.[0][1170]=1169\n.[0][1171]=1170\n.[0][1172]=1171\n.[0][1173]=1172\n.[0][1174]=1173\n.[0][1175]=1174\n.[0][1176]=1175\n.[0][1177]=1176\n.[0][1178]=1177\n.[0][1179]=1178\n.[0][1180]=1179\n.[0][1181]=1180\n.[0][1182]=1181\n.[0][1183]=1182\n.[0][1184]=1183\n.[0][1185]=1184\n.[0][1186]=1185\n.[0][1187]=1186\n.[0][1188]=1187\n.[0][1189]=1188\n.[0][1190]=1189\n.[0][1191]=1190\n.[0][1192]=1191\n.[0][1193]=1192\n.[0][1194]=1193\n.[0][1195]=1194\n.[0][1196]=1195\n.[0][1197]=1196\n.[0][1198]=1197\n.[0][1199]=1198\n.[0][1200]=1199\n.[0][1201]=1200\n.[0][1202]=1201\n.[0][1203]=1202\n.[0][1204]=1203\n.[0][1205]=1204\n.[0][1206]=1205\n.[0][1207]=1206\n.[0][1208]=1207\n.[0][1209]=1208\n.[0][1210]=1209\n.[0][1211]=1210\n.[0][1212]=1211\n.[0][1213]=1212\n.[0][1214]=1213\n.[0][1215]=1214\n.[0][1216]=1215\n.[0][1217]=1216\n.[0][1218]=1217\n.[0][1219]=1218\n.[0][1220]=1219\n.[0][1221]=1220\n.[0][1222]=1221\n.[0][1223]=1222\n.[0][1224]=1223\n.[0][1225]=1224\n.[0][1226]=1225\n.[0][1227]=1226\n.[0][1228]=1227\n.[0][1229]=1228\n.[0][1230]=1229\n.[0][1231]=1230\n.[0][1232]=1231\n.[0][1233]=1232\n.[0][1234]=1233\n.[0][1235]=1234\n.[0][1236]=1235\n.[0][1237]=1236\n.[0][1238]=1237\n.[0][1239]=1238\n.[0][1240]=1239\n.[0][1241]=1240\n.[0][1242]=1241\n.[0][1243]=1242\n.[0][1244]=1243\n.[0][1245]=1244\n.[0][1246]=1245\n.[0][1247]=1246\n.[0][1248]=1247\n.[0][1249]=1248\n.[0][1250]=1249\n.[0][1251]=1250\n.[0][1252]=1251\n.[0][1253]=1252\n.[0][1254]=1253\n.[0][1255]=1254\n.[0][1256]=1255\n.[0][1257]=1256\n.[0][1258]=1257\n.[0][1259]=1258\n.[0][1260]=1259\n.[0][1261]=1260\n.[0][1262]=1261\n.[0][1263]=1262\n.[0][1264]=1263\n.[0][1265]=1264\n.[0][1266]=1265\n.[0][1267]=1266\n.[0][1268]=1267\n.[0][1269]=1268\n.[0][1270]=1269\n.[0][1271]=1270\n.[0][1272]=1271\n.[0][1273]=1272\n.[0][1274]=1273\n.[0][1275]=1274\n.[0][1276]=1275\n.[0][1277]=1276\n.[0][1278]=1277\n.[0][1279]=1278\n.[0][1280]=1279\n.[0][1281]=1280\n.[0][1282]=1281\n.[0][1283]=1282\n.[0][1284]=1283\n.[0][1285]=1284\n.[0][1286]=1285\n.[0][1287]=1286\n.[0][1288]=1287\n.[0][1289]=1288\n.[0][1290]=1289\n.[0][1291]=1290\n.[0][1292]=1291\n.[0][1293]=1292\n.[0][1294]=1293\n.[0][1295]=1294\n.[0][1296]=1295\n.[0][1297]=1296\n.[0][1298]=1297\n.[0][1299]=1298\n.[0][1300]=1299\n.[0][1301]=1300\n.[0][1302]=1301\n.[0][1303]=1302\n.[0][1304]=1303\n.[0][1305]=1304\n.[0][1306]=1305\n.[0][1307]=1306\n.[0][1308]=1307\n.[0][1309]=1308\n.[0][1310]=1309\n.[0][1311]=1310\n.[0][1312]=1311\n.[0][1313]=1312\n.[0][1314]=1313\n.[0][1315]=1314\n.[0][1316]=1315\n.[0][1317]=1316\n.[0][1318]=1317\n.[0][1319]=1318\n.[0][1320]=1319\n.[0][1321]=1320\n.[0][1322]=1321\n.[0][1323]=1322\n.[0][1324]=1323\n.[0][1325]=1324\n.[0][1326]=1325\n.[0][1327]=1326\n.[0][1328]=1327\n.[0][1329]=1328\n.[0][1330]=1329\n.[0][1331]=1330\n.[0][1332]=1331\n.[0][1333]=1332\n.[0][1334]=1333\n.[0][1335]=1334\n.[0][1336]=1335\n.[0][1337]=1336\n.[0][1338]=1337\n.[0][1339]=1338\n.[0][1340]=1339\n.[0][1341]=1340\n.[0][1342]=1341\n.[0][1343]=1342\n.[0][1344]=1343\n.[0][1345]=1344\n.[0][1346]=1345\n.[0][1347]=1346\n.[0][1348]=1347\n.[0][1349]=1348\n.[0][1350]=1349\n.[0][1351]=1350\n.[0][1352]=1351\n.[0][1353]=1352\n.[0][1354]=1353\n.[0][1355]=1354\n.[0][1356]=1355\n.[0][1357]=1356\n.[0][1358]=1357\n.[0][1359]=1358\n.[0][1360]=1359\n.[0][1361]=1360\n.[0][1362]=1361\n.[0][1363]=1362\n.[0][1364]=1363\n.[0][1365]=1364\n.[0][1366]=1365\n.[0][1367]=1366\n.[0][1368]=1367\n.[0][1369]=1368\n.[0][1370]=1369\n.[0][1371]=1370\n.[0][1372]=1371\n.[0][1373]=1372\n.[0][1374]=1373\n.[0][1375]=1374\n.[0][1376]=1375\n.[0][1377]=1376\n.[0][1378]=1377\n.[0][1379]=1378\n.[0][1380]=1379\n.[0][1381]=1380\n.[0][1382]=1381\n.[0][1383]=1382\n.[0][1384]=1383\n.[0][1385]=1384\n.[0][1386]=1385\n.[0][1387]=1386\n.[0][1388]=1387\n.[0][1389]=1388\n.[0][1390]=1389\n.[0][1391]=1390\n.[0][1392]=1391\n.[0][1393]=1392\n.[0][1394]=1393\n.[0][1395]=1394\n.[0][1396]=1395\n.[0][1397]=1396\n.[0][1398]=1397\n.[0][1399]=1398\n.[0][1400]=1399\n.[0][1401]=1400\n.[0][1402]=1401\n.[0][1403]=1402\n.[0][1404]=1403\n.[0][1405]=1404\n.[0][1406]=1405\n.[0][1407]=1406\n.[0][1408]=1407\n.[0][1409]=1408\n.[0][1410]=1409\n.[0][1411]=1410\n.[0][1412]=1411\n.[0][1413]=1412\n.[0][1414]=1413\n.[0][1415]=1414\n.[0][1416]=1415\n.[0][1417]=1416\n.[0][1418]=1417\n.[0][1419]=1418\n.[0][1420]=1419\n.[0][1421]=1420\n.[0][1422]=1421\n.[0][1423]=1422\n.[0][1424]=1423\n.[0][1425]=1424\n.[0][1426]=1425\n.[0][1427]=1426\n.[0][1428]=1427\n.[0][1429]=1428\n.[0][1430]=1429\n.[0][1431]=1430\n.[0][1432]=1431\n.[0][1433]=1432\n.[0][1434]=1433\n.[0][1435]=1434\n.[0][1436]=1435\n.[0][1437]=1436\n.[0][1438]=1437\n.[0][1439]=1438\n.[0][1440]=1439\n.[0][1441]=1440\n.[0][1442]=1441\n.[0][1443]=1442\n.[0][1444]=1443\n.[0][1445]=1444\n.[0][1446]=1445\n.[0][1447]=1446\n.[0][1448]=1447\n.[0][1449]=1448\n.[0][1450]=1449\n.[0][1451]=1450\n.[0][1452]=1451\n.[0][1453]=1452\n.[0][1454]=1453\n.[0][1455]=1454\n.[0][1456]=1455\n.[0][1457]=1456\n.[0][1458]=1457\n.[0][1459]=1458\n.[0][1460]=1459\n.[0][1461]=1460\n.[0][1462]=1461\n.[0][1463]=1462\n.[0][1464]=1463\n.[0][1465]=1464\n.[0][1466]=1465\n.[0][1467]=1466\n.[0][1468]=1467\n.[0][1469]=1468\n.[0][1470]=1469\n.[0][1471]=1470\n.[0][1472]=1471\n.[0][1473]=1472\n.[0][1474]=1473\n.[0][1475]=1474\n.[0][1476]=1475\n.[0][1477]=1476\n.[0][1478]=1477\n.[0][1479]=1478\n.[0][1480]=1479\n.[0][1481]=1480\n.[0][1482]=1481\n.[0][1483]=1482\n.[0][1484]=1483\n.[0][1485]=1484\n.[0][1486]=1485\n.[0][1487]=1486\n.[0][1488]=1487\n.[0][1489]=1488\n.[0][1490]=1489\n.[0][1491]=1490\n.[0][1492]=1491\n.[0][1493]=1492\n.[0][1494]=1493\n.[0][1495]=1494\n.[0][1496]=1495\n.[0][1497]=1496\n.[0][1498]=1497\n.[0][1499]=1498\n.[0][1500]=1499\n.[0][1501]=1500\n.[0][1502]=1501\n.[0][1503]=1502\n.[0][1504]=1503\n.[0][1505]=1504\n.[0][1506]=1505\n.[0][1507]=1506\n.[0][1508]=1507\n.[0][1509]=1508\n.[0][1510]=1509\n.[0][1511]=1510\n.[0][1512]=1511\n.[0][1513]=1512\n.[0][1514]=1513\n.[0][1515]=1514\n.[0][1516]=1515\n.[0][1517]=1516\n.[0][1518]=1517\n.[0][1519]=1518\n.[0][1520]=1519\n.[0][1521]=1520\n.[0][1522]=1521\n.[0][1523]=1522\n.[0][1524]=1523\n.[0][1525]=1524\n.[0][1526]=1525\n.[0][1527]=1526\n.[0][1528]=1527\n.[0][1529]=1528\n.[0][1530]=1529\n.[0][1531]=1530\n.[0][1532]=1531\n.[0][1533]=1532\n.[0][1534]=1533\n.[0][1535]=1534\n.[0][1536]=1535\n.[0][1537]=1536\n.[0][1538]=1537\n.[0][1539]=1538\n.[0][1540]=1539\n.[0][1541]=1540\n.[0][1542]=1541\n.[0][1543]=1542\n.[0][1544]=1543\n.[0][1545]=1544\n.[0][1546]=1545\n.[0][1547]=1546\n.[0][1548]=1547\n.[0][1549]=1548\n.[0][1550]=1549\n.[0][1551]=1550\n.[0][1552]=1551\n.[0][1553]=1552\n.[0][1554]=1553\n.[0][1555]=1554\n.[0][1556]=1555\n.[0][1557]=1556\n.[0][1558]=1557\n.[0][1559]=1558\n.[0][1560]=1559\n.[0][1561]=1560\n.[0][1562]=1561\n.[0][1563]=1562\n.[0][1564]=1563\n.[0][1565]=1564\n.[0][1566]=1565\n.[0][1567]=1566\n.[0][1568]=1567\n.[0][1569]=1568\n.[0][1570]=1569\n.[0][1571]=1570\n.[0][1572]=1571\n.[0][1573]=1572\n.[0][1574]=1573\n.[0][1575]=1574\n.[0][1576]=1575\n.[0][1577]=1576\n.[0][1578]=1577\n.[0][1579]=1578\n.[0][1580]=1579\n.[0][1581]=1580\n.[0][1582]=1581\n.[0][1583]=1582\n.[0][1584]=1583\n.[0][1585]=1584\n.[0][1586]=1585\n.[0][1587]=1586\n.[0][1588]=1587\n.[0][1589]=1588\n.[0][1590]=1589\n.[0][1591]=1590\n.[0][1592]=1591\n.[0][1593]=1592\n.[0][1594]=1593\n.[0][1595]=1594\n.[0][1596]=1595\n.[0][1597]=1596\n.[0][1598]=1597\n.[0][1599]=1598\n.[0][1600]=1599\n.[0][1601]=1600\n.[0][1602]=1601\n.[0][1603]=1602\n.[0][1604]=1603\n.[0][1605]=1604\n.[0][1606]=1605\n.[0][1607]=1606\n.[0][1608]=1607\n.[0][1609]=1608\n.[0][1610]=1609\n.[0][1611]=1610\n.[0][1612]=1611\n.[0][1613]=1612\n.[0][1614]=1613\n.[0][1615]=1614\n.[0][1616]=1615\n.[0][1617]=1616\n.[0][1618]=1617\n.[0][1619]=1618\n.[0][1620]=1619\n.[0][1621]=1620\n.[0][1622]=1621\n.[0][1623]=1622\n.[0][1624]=1623\n.[0][1625]=1624\n.[0][1626]=1625\n.[0][1627]=1626\n.[0][1628]=1627\n.[0][1629]=1628\n.[0][1630]=1629\n.[0][1631]=1630\n.[0][1632]=1631\n.[0][1633]=1632\n.[0][1634]=1633\n.[0][1635]=1634\n.[0][1636]=1635\n.[0][1637]=1636\n.[0][1638]=1637\n.[0][1639]=1638\n.[0][1640]=1639\n.[0][1641]=1640\n.[0][1642]=1641\n.[0][1643]=1642\n.[0][1644]=1643\n.[0][1645]=1644\n.[0][1646]=1645\n.[0][1647]=1646\n.[0][1648]=1647\n.[0][1649]=1648\n.[0][1650]=1649\n.[0][1651]=1650\n.[0][1652]=1651\n.[0][1653]=1652\n.[0][1654]=1653\n.[0][1655]=1654\n.[0][1656]=1655\n.[0][1657]=1656\n.[0][1658]=1657\n.[0][1659]=1658\n.[0][1660]=1659\n.[0][1661]=1660\n.[0][1662]=1661\n.[0][1663]=1662\n.[0][1664]=1663\n.[0][1665]=1664\n.[0][1666]=1665\n.[0][1667]=1666\n.[0][1668]=1667\n.[0][1669]=1668\n.[0][1670]=1669\n.[0][1671]=1670\n.[0][1672]=1671\n.[0][1673]=1672\n.[0][1674]=1673\n.[0][1675]=1674\n.[0][1676]=1675\n.[0][1677]=1676\n.[0][1678]=1677\n.[0][1679]=1678\n.[0][1680]=1679\n.[0][1681]=1680\n.[0][1682]=1681\n.[0][1683]=1682\n.[0][1684]=1683\n.[0][1685]=1684\n.[0][1686]=1685\n.[0][1687]=1686\n.[0][1688]=1687\n.[0][1689]=1688\n.[0][1690]=1689\n.[0][1691]=1690\n.[0][1692]=1691\n.[0][1693]=1692\n.[0][1694]=1693\n.[0][1695]=1694\n.[0][1696]=1695\n.[0][1697]=1696\n.[0][1698]=1697\n.[0][1699]=1698\n.[0][1700]=1699\n.[0][1701]=1700\n.[0][1702]=1701\n.[0][1703]=1702\n.[0][1704]=1703\n.[0][1705]=1704\n.[0][1706]=1705\n.[0][1707]=1706\n.[0][1708]=1707\n.[0][1709]=1708\n.[0][1710]=1709\n.[0][1711]=1710\n.[0][1712]=1711\n.[0][1713]=1712\n.[0][1714]=1713\n.[0][1715]=1714\n.[0][1716]=1715\n.[0][1717]=1716\n.[0][1718]=1717\n.[0][1719]=1718\n.[0][1720]=1719\n.[0][1721]=1720\n.[0][1722]=1721\n.[0][1723]=1722\n.[0][1724]=1723\n.[0][1725]=1724\n.[0][1726]=1725\n.[0][1727]=1726\n.[0][1728]=1727\n.[0][1729]=1728\n.[0][1730]=1729\n.[0][1731]=1730\n.[0][1732]=1731\n.[0][1733]=1732\n.[0][1734]=1733\n.[0][1735]=1734\n.[0][1736]=1735\n.[0][1737]=1736\n.[0][1738]=1737\n.[0][1739]=1738\n.[0][1740]=1739\n.[0][1741]=1740\n.[0][1742]=1741\n.[0][1743]=1742\n.[0][1744]=1743\n.[0][1745]=1744\n.[0][1746]=1745\n.[0][1747]=1746\n.[0][1748]=1747\n.[0][1749]=1748\n.[0][1750]=1749\n.[0][1751]=1750\n.[0][1752]=1751\n.[0][1753]=1752\n.[0][1754]=1753\n.[0][1755]=1754\n.[0][1756]=1755\n.[0][1757]=1756\n.[0][1758]=1757\n.[0][1759]=1758\n.[0][1760]=1759\n.[0][1761]=1760\n.[0][1762]=1761\n.[0][1763]=1762\n.[0][1764]=1763\n.[0][1765]=1764\n.[0][1766]=1765\n.[0][1767]=1766\n.[0][1768]=1767\n.[0][1769]=1768\n.[0][1770]=1769\n.[0][1771]=1770\n.[0][1772]=1771\n.[0][1773]=1772\n.[0][1774]=1773\n.[0][1775]=1774\n.[0][1776]=1775\n.[0][1777]=1776\n.[0][1778]=1777\n.[0][1779]=1778\n.[0][1780]=1779\n.[0][1781]=1780\n.[0][1782]=1781\n.[0][1783]=1782\n.[0][1784]=1783\n.[0][1785]=1784\n.[0][1786]=1785\n.[0][1787]=1786\n.[0][1788]=1787\n.[0][1789]=1788\n.[0][1790]=1789\n.[0][1791]=1790\n.[0][1792]=1791\n.[0][1793]=1792\n.[0][1794]=1793\n.[0][1795]=1794\n.[0][1796]=1795\n.[0][1797]=1796\n.[0][1798]=1797\n.[0][1799]=1798\n.[0][1800]=1799\n.[0][1801]=1800\n.[0][1802]=1801\n.[0][1803]=1802\n.[0][1804]=1803\n.[0][1805]=1804\n.[0][1806]=1805\n.[0][1807]=1806\n.[0][1808]=1807\n.[0][1809]=1808\n.[0][1810]=1809\n.[0][1811]=1810\n.[0][1812]=1811\n.[0][1813]=1812\n.[0][1814]=1813\n.[0][1815]=1814\n.[0][1816]=1815\n.[0][1817]=1816\n.[0][1818]=1817\n.[0][1819]=1818\n.[0][1820]=1819\n.[0][1821]=1820\n.[0][1822]=1821\n.[0][1823]=1822\n.[0][1824]=1823\n.[0][1825]=1824\n.[0][1826]=1825\n.[0][1827]=1826\n.[0][1828]=1827\n.[0][1829]=1828\n.[0][1830]=1829\n.[0][1831]=1830\n.[0][1832]=1831\n.[0][1833]=1832\n.[0][1834]=1833\n.[0][1835]=1834\n.[0][1836]=1835\n.[0][1837]=1836\n.[0][1838]=1837\n.[0][1839]=1838\n.[0][1840]=1839\n.[0][1841]=1840\n.[0][1842]=1841\n.[0][1843]=1842\n.[0][1844]=1843\n.[0][1845]=1844\n.[0][1846]=1845\n.[0][1847]=1846\n.[0][1848]=1847\n.[0][1849]=1848\n.[0][1850]=1849\n.[0][1851]=1850\n.[0][1852]=1851\n.[0][1853]=1852\n.[0][1854]=1853\n.[0][1855]=1854\n.[0][1856]=1855\n.[0][1857]=1856\n.[0][1858]=1857\n.[0][1859]=1858\n.[0][1860]=1859\n.[0][1861]=1860\n.[0][1862]=1861\n.[0][1863]=1862\n.[0][1864]=1863\n.[0][1865]=1864\n.[0][1866]=1865\n.[0][1867]=1866\n.[0][1868]=1867\n.[0][1869]=1868\n.[0][1870]=1869\n.[0][1871]=1870\n.[0][1872]=1871\n.[0][1873]=1872\n.[0][1874]=1873\n.[0][1875]=1874\n.[0][1876]=1875\n.[0][1877]=1876\n.[0][1878]=1877\n.[0][1879]=1878\n.[0][1880]=1879\n.[0][1881]=1880\n.[0][1882]=1881\n.[0][1883]=1882\n.[0][1884]=1883\n.[0][1885]=1884\n.[0][1886]=1885\n.[0][1887]=1886\n.[0][1888]=1887\n.[0][1889]=1888\n.[0][1890]=1889\n.[0][1891]=1890\n.[0][1892]=1891\n.[0][1893]=1892\n.[0][1894]=1893\n.[0][1895]=1894\n.[0][1896]=1895\n.[0][1897]=1896\n.[0][1898]=1897\n.[0][1899]=1898\n.[0][1900]=1899\n.[0][1901]=1900\n.[0][1902]=1901\n.[0][1903]=1902\n.[0][1904]=1903\n.[0][1905]=1904\n.[0][1906]=1905\n.[0][1907]=1906\n.[0][1908]=1907\n.[0][1909]=1908\n.[0][1910]=1909\n.[0][1911]=1910\n.[0][1912]=1911\n.[0][1913]=1912\n.[0][1914]=1913\n.[0][1915]=1914\n.[0][1916]=1915\n.[0][1917]=1916\n.[0][1918]=1917\n.[0][1919]=1918\n.[0][1920]=1919\n.[0][1921]=1920\n.[0][1922]=1921\n.[0][1923]=1922\n.[0][1924]=1923\n.[0][1925]=1924\n.[0][1926]=1925\n.[0][1927]=1926\n.[0][1928]=1927\n.[0][1929]=1928\n.[0][1930]=1929\n.[0][1931]=1930\n.[0][1932]=1931\n.[0][1933]=1932\n.[0][1934]=1933\n.[0][1935]=1934\n.[0][1936]=1935\n.[0][1937]=1936\n.[0][1938]=1937\n.[0][1939]=1938\n.[0][1940]=1939\n.[0][1941]=1940\n.[0][1942]=1941\n.[0][1943]=1942\n.[0][1944]=1943\n.[0][1945]=1944\n.[0][1946]=1945\n.[0][1947]=1946\n.[0][1948]=1947\n.[0][1949]=1948\n.[0][1950]=1949\n.[0][1951]=1950\n.[0][1952]=1951\n.[0][1953]=1952\n.[0][1954]=1953\n.[0][1955]=1954\n.[0][1956]=1955\n.[0][1957]=1956\n.[0][1958]=1957\n.[0][1959]=1958\n.[0][1960]=1959\n.[0][1961]=1960\n.[0][1962]=1961\n.[0][1963]=1962\n.[0][1964]=1963\n.[0][1965]=1964\n.[0][1966]=1965\n.[0][1967]=1966\n.[0][1968]=1967\n.[0][1969]=1968\n.[0][1970]=1969\n.[0][1971]=1970\n.[0][1972]=1971\n.[0][1973]=1972\n.[0][1974]=1973\n.[0][1975]=1974\n.[0][1976]=1975\n.[0][1977]=1976\n.[0][1978]=1977\n.[0][1979]=1978\n.[0][1980]=1979\n.[0][1981]=1980\n.[0][1982]=1981\n.[0][1983]=1982\n.[0][1984]=1983\n.[0][1985]=1984\n.[0][1986]=1985\n.[0][1987]=1986\n.[0][1988]=1987\n.[0][1989]=1988\n.[0][1990]=1989\n.[0][1991]=1990\n.[0][1992]=1991\n.[0][1993]=1992\n.[0][1994]=1993\n.[0][1995]=1994\n.[0][1996]=1995\n.[0][1997]=1996\n.[0][1998]=1997\n.[0][1999]=1998\n.[0][2000]=1999\n.[0][2001]=2000\n.[0][2002]=2001\n.[0][2003]=2002\n.[0][2004]=2003\n.[0][2005]=2004\n.[0][2006]=2005\n.[0][2007]=2006\n.[0][2008]=2007\n.[0][2009]=2008\n.[0][2010]=2009\n.[0][2011]=2010\n.[0][2012]=2011\n.[0][2013]=2012\n.[0][2014]=2013\n.[0][2015]=2014\n.[0][2016]=2015\n.[0][2017]=2016\n.[0][2018]=2017\n.[0][2019]=2018\n.[0][2020]=2019\n.[0][2021]=2020\n.[0][2022]=2021\n.[0][2023]=2022\n.[0][2024]=2023\n.[0][2025]=2024\n.[0][2026]=2025\n.[0][2027]=2026\n.[0][2028]=2027\n.[0][2029]=2028\n.[0][2030]=2029\n.[0][2031]=2030\n.[0][2032]=2031\n.[0][2033]=2032\n.[0][2034]=2033\n.[0][2035]=2034\n.[0][2036]=2035\n.[0][2037]=2036\n.[0][2038]=2037\n.[0][2039]=2038\n.[0][2040]=2039\n.[0][2041]=2040\n.[0][2042]=2041\n.[0][2043]=2042\n.[0][2044]=2043\n.[0][2045]=2044\n.[0][2046]=2045\n.[0][2047]=2046\n.[0][2048]=2047\n.[0][2049]=2048\n.[0][2050]=2049\n.[0][2051]=2050\n.[0][2052]=2051\n.[0][2053]=2052\n.[0][2054]=2053\n.[0][2055]=2054\n.[0][2056]=2055\n.[0][2057]=2056\n.[0][2058]=2057\n.[0][2059]=2058\n.[0][2060]=2059\n.[0][2061]=2060\n.[0][2062]=2061\n.[0][2063]=2062\n.[0][2064]=2063\n.[0][2065]=2064\n.[0][2066]=2065\n.[0][2067]=2066\n.[0][2068]=2067\n.[0][2069]=2068\n.[0][2070]=2069\n.[0][2071]=2070\n.[0][2072]=2071\n.[0][2073]=2072\n.[0][2074]=2073\n.[0][2075]=2074\n.[0][2076]=2075\n.[0][2077]=2076\n.[0][2078]=2077\n.[0][2079]=2078\n.[0][2080]=2079\n.[0][2081]=2080\n.[0][2082]=2081\n.[0][2083]=2082\n.[0][2084]=2083\n.[0][2085]=2084\n.[0][2086]=2085\n.[0][2087]=2086\n.[0][2088]=2087\n.[0][2089]=2088\n.[0][2090]=2089\n.[0][2091]=2090\n.[0][2092]=2091\n.[0][2093]=2092\n.[0][2094]=2093\n.[0][2095]=2094\n.[0][2096]=2095\n.[0][2097]=2096\n.[0][2098]=2097\n.[0][2099]=2098\n.[0][2100]=2099\n.[0][2101]=2100\n.[0][2102]=2101\n.[0][2103]=2102\n.[0][2104]=2103\n.[0][2105]=2104\n.[0][2106]=2105\n.[0][2107]=2106\n.[0][2108]=2107\n.[0][2109]=2108\n.[0][2110]=2109\n.[0][2111]=2110\n.[0][2112]=2111\n.[0][2113]=2112\n.[0][2114]=2113\n.[0][2115]=2114\n.[0][2116]=2115\n.[0][2117]=2116\n.[0][2118]=2117\n.[0][2119]=2118\n"
  },
  {
    "path": "test/data/legacy_test_large_01.json",
    "content": "[[\"A\",0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520,521,522,523,524,525,526,527,528,529,530,531,532,533,534,535,536,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557,558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,574,575,576,577,578,579,580,581,582,583,584,585,586,587,588,589,590,591,592,593,594,595,596,597,598,599,600,601,602,603,604,605,606,607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639,640,641,642,643,644,645,646,647,648,649,650,651,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683,684,685,686,687,688,689,690,691,692,693,694,695,696,697,698,699,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,800,801,802,803,804,805,806,807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826,827,828,829,830,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978,979,980,981,982,983,984,985,986,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1120,1121,1122,1123,1124,1125,1126,1127,1128,1129,1130,1131,1132,1133,1134,1135,1136,1137,1138,1139,1140,1141,1142,1143,1144,1145,1146,1147,1148,1149,1150,1151,1152,1153,1154,1155,1156,1157,1158,1159,1160,1161,1162,1163,1164,1165,1166,1167,1168,1169,1170,1171,1172,1173,1174,1175,1176,1177,1178,1179,1180,1181,1182,1183,1184,1185,1186,1187,1188,1189,1190,1191,1192,1193,1194,1195,1196,1197,1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1519,1520,1521,1522,1523,1524,1525,1526,1527,1528,1529,1530,1531,1532,1533,1534,1535,1536,1537,1538,1539,1540,1541,1542,1543,1544,1545,1546,1547,1548,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611,1612,1613,1614,1615,1616,1617,1618,1619,1620,1621,1622,1623,1624,1625,1626,1627,1628,1629,1630,1631,1632,1633,1634,1635,1636,1637,1638,1639,1640,1641,1642,1643,1644,1645,1646,1647,1648,1649,1650,1651,1652,1653,1654,1655,1656,1657,1658,1659,1660,1661,1662,1663,1664,1665,1666,1667,1668,1669,1670,1671,1672,1673,1674,1675,1676,1677,1678,1679,1680,1681,1682,1683,1684,1685,1686,1687,1688,1689,1690,1691,1692,1693,1694,1695,1696,1697,1698,1699,1700,1701,1702,1703,1704,1705,1706,1707,1708,1709,1710,1711,1712,1713,1714,1715,1716,1717,1718,1719,1720,1721,1722,1723,1724,1725,1726,1727,1728,1729,1730,1731,1732,1733,1734,1735,1736,1737,1738,1739,1740,1741,1742,1743,1744,1745,1746,1747,1748,1749,1750,1751,1752,1753,1754,1755,1756,1757,1758,1759,1760,1761,1762,1763,1764,1765,1766,1767,1768,1769,1770,1771,1772,1773,1774,1775,1776,1777,1778,1779,1780,1781,1782,1783,1784,1785,1786,1787,1788,1789,1790,1791,1792,1793,1794,1795,1796,1797,1798,1799,1800,1801,1802,1803,1804,1805,1806,1807,1808,1809,1810,1811,1812,1813,1814,1815,1816,1817,1818,1819,1820,1821,1822,1823,1824,1825,1826,1827,1828,1829,1830,1831,1832,1833,1834,1835,1836,1837,1838,1839,1840,1841,1842,1843,1844,1845,1846,1847,1848,1849,1850,1851,1852,1853,1854,1855,1856,1857,1858,1859,1860,1861,1862,1863,1864,1865,1866,1867,1868,1869,1870,1871,1872,1873,1874,1875,1876,1877,1878,1879,1880,1881,1882,1883,1884,1885,1886,1887,1888,1889,1890,1891,1892,1893,1894,1895,1896,1897,1898,1899,1900,1901,1902,1903,1904,1905,1906,1907,1908,1909,1910,1911,1912,1913,1914,1915,1916,1917,1918,1919,1920,1921,1922,1923,1924,1925,1926,1927,1928,1929,1930,1931,1932,1933,1934,1935,1936,1937,1938,1939,1940,1941,1942,1943,1944,1945,1946,1947,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,2029,2030,2031,2032,2033,2034,2035,2036,2037,2038,2039,2040,2041,2042,2043,2044,2045,2046,2047,2048,2049,2050,2051,2052,2053,2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068,2069,2070,2071,2072,2073,2074,2075,2076,2077,2078,2079,2080,2081,2082,2083,2084,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2100,2101,2102,2103,2104,2105,2106,2107,2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118]\n]"
  },
  {
    "path": "test/data/legacy_test_object_01.expected",
    "content": ".={}\n"
  },
  {
    "path": "test/data/legacy_test_object_01.json",
    "content": "{}\n"
  },
  {
    "path": "test/data/legacy_test_object_02.expected",
    "content": ".={}\n.count=1234\n"
  },
  {
    "path": "test/data/legacy_test_object_02.json",
    "content": "{ \"count\" : 1234 }\n"
  },
  {
    "path": "test/data/legacy_test_object_03.expected",
    "content": ".={}\n.attribute=\"random\"\n.count=1234\n.name=\"test\"\n"
  },
  {
    "path": "test/data/legacy_test_object_03.json",
    "content": "{\n\t\"count\" : 1234,\n\t\"name\" : \"test\",\n\t\"attribute\" : \"random\"\n}\n"
  },
  {
    "path": "test/data/legacy_test_object_04.expected",
    "content": ".={}\n.=1234\n"
  },
  {
    "path": "test/data/legacy_test_object_04.json",
    "content": "{\n\t\"\" : 1234\n}\n"
  },
  {
    "path": "test/data/legacy_test_preserve_comment_01.expected",
    "content": "/* A comment\n   at the beginning of the file.\n */\n.={}\n.first=1\n/* Comment before 'second'\n */\n.second=2\n/* A comment at\n   the end of the file.\n */\n"
  },
  {
    "path": "test/data/legacy_test_preserve_comment_01.json",
    "content": "/* A comment\n   at the beginning of the file.\n */\n{\n   \"first\" : 1, // comment after 'first' on the same line\n\n/* Comment before 'second'\n */\n   \"second\" : 2\n}\n\n/* A comment at\n   the end of the file.\n */\n"
  },
  {
    "path": "test/data/legacy_test_real_01.expected",
    "content": "// 2^33 => out of integer range, switch to double\n.=8589934592\n\n"
  },
  {
    "path": "test/data/legacy_test_real_01.json",
    "content": "// 2^33 => out of integer range, switch to double\n8589934592\n\n"
  },
  {
    "path": "test/data/legacy_test_real_02.expected",
    "content": "// -2^32 => out of signed integer range, switch to double\n.=-4294967295\n\n"
  },
  {
    "path": "test/data/legacy_test_real_02.json",
    "content": "// -2^32 => out of signed integer range, switch to double\n-4294967295\n\n"
  },
  {
    "path": "test/data/legacy_test_real_03.expected",
    "content": "// -2^32 => out of signed integer range, switch to double\n.=-4294967295\n\n"
  },
  {
    "path": "test/data/legacy_test_real_03.json",
    "content": "// -2^32 => out of signed integer range, switch to double\n-4294967295\n\n"
  },
  {
    "path": "test/data/legacy_test_real_04.expected",
    "content": "// 1.2345678\n.=1.2345678\n\n"
  },
  {
    "path": "test/data/legacy_test_real_04.json",
    "content": "// 1.2345678\n12345678e-7\n\n"
  },
  {
    "path": "test/data/legacy_test_real_05.expected",
    "content": "// 1234567.8\n.=1234567.8\n\n\n"
  },
  {
    "path": "test/data/legacy_test_real_05.json",
    "content": "// 1234567.8\n0.12345678e7\n\n"
  },
  {
    "path": "test/data/legacy_test_real_06.expected",
    "content": "// -1.2345678\n.=-1.2345678\n\n\n"
  },
  {
    "path": "test/data/legacy_test_real_06.json",
    "content": "// -1.2345678\n-12345678e-7\n\n"
  },
  {
    "path": "test/data/legacy_test_real_07.expected",
    "content": "// -1234567.8\n.=-1234567.8\n\n\n"
  },
  {
    "path": "test/data/legacy_test_real_07.json",
    "content": "// -1234567.8\n-0.12345678e7\n\n"
  },
  {
    "path": "test/data/legacy_test_real_08.expected",
    "content": "// Out of 32-bit integer range, switch to double in 32-bit mode. Length the\n// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in\n// order to catch a bug in the parsing code.\n.=4300000001\n"
  },
  {
    "path": "test/data/legacy_test_real_08.json",
    "content": "// Out of 32-bit integer range, switch to double in 32-bit mode. Length the\n// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in\n// order to catch a bug in the parsing code.\n4300000001\n"
  },
  {
    "path": "test/data/legacy_test_real_09.expected",
    "content": "// Out of 64-bit integer range, switch to double in all modes. Length the same\n// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order\n// to catch a bug in the parsing code.\n.=1.9e+19\n"
  },
  {
    "path": "test/data/legacy_test_real_09.json",
    "content": "// Out of 64-bit integer range, switch to double in all modes. Length the same\n// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order\n// to catch a bug in the parsing code.\n19000000000000000001\n"
  },
  {
    "path": "test/data/legacy_test_real_10.expected",
    "content": "// Out of 32-bit signed integer range, switch to double in all modes. Length\n// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in\n// order to catch a bug in the parsing code.\n.=-2200000001\n"
  },
  {
    "path": "test/data/legacy_test_real_10.json",
    "content": "// Out of 32-bit signed integer range, switch to double in all modes. Length\n// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in\n// order to catch a bug in the parsing code.\n-2200000001\n"
  },
  {
    "path": "test/data/legacy_test_real_11.expected",
    "content": "// Out of 64-bit signed integer range, switch to double in all modes. Length\n// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in\n// order to catch a bug in the parsing code.\n.=-9.3e+18\n"
  },
  {
    "path": "test/data/legacy_test_real_11.json",
    "content": "// Out of 64-bit signed integer range, switch to double in all modes. Length\n// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in\n// order to catch a bug in the parsing code.\n-9300000000000000001\n"
  },
  {
    "path": "test/data/legacy_test_real_12.expected",
    "content": "// 2^64 -> switch to double.\n.=1.844674407370955e+19\n"
  },
  {
    "path": "test/data/legacy_test_real_12.json",
    "content": "// 2^64 -> switch to double.\n18446744073709551616\n"
  },
  {
    "path": "test/data/legacy_test_real_13.expected",
    "content": ".=[]\n.[0]=-inf\n.[1]=inf\n"
  },
  {
    "path": "test/data/legacy_test_real_13.json",
    "content": "[-1e+9999, 1e+9999]\n"
  },
  {
    "path": "test/data/legacy_test_string_01.expected",
    "content": ".=\"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\""
  },
  {
    "path": "test/data/legacy_test_string_01.json",
    "content": "\"!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"\n"
  },
  {
    "path": "test/data/legacy_test_string_02.expected",
    "content": ".=\"!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\""
  },
  {
    "path": "test/data/legacy_test_string_02.json",
    "content": "\"!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~!\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"\n"
  },
  {
    "path": "test/data/legacy_test_string_03.expected",
    "content": ".=\"http://jsoncpp.sourceforge.net/\""
  },
  {
    "path": "test/data/legacy_test_string_03.json",
    "content": "\"http:\\/\\/jsoncpp.sourceforge.net\\/\"\n"
  },
  {
    "path": "test/data/legacy_test_string_04.expected",
    "content": ".=\"\"abc\\def\"\"\n\n"
  },
  {
    "path": "test/data/legacy_test_string_04.json",
    "content": "\"\\\"abc\\\\def\\\"\"\n\n"
  },
  {
    "path": "test/data/legacy_test_string_05.expected",
    "content": ".=\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\n\n"
  },
  {
    "path": "test/data/legacy_test_string_05.json",
    "content": "\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\n\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_01.expected",
    "content": ".=\"a\"\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_01.json",
    "content": "\"\\u0061\""
  },
  {
    "path": "test/data/legacy_test_string_unicode_02.expected",
    "content": ".=\"¢\"\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_02.json",
    "content": "\"\\u00A2\""
  },
  {
    "path": "test/data/legacy_test_string_unicode_03.expected",
    "content": ".=\"€\"\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_03.json",
    "content": "\"\\u20AC\""
  },
  {
    "path": "test/data/legacy_test_string_unicode_04.expected",
    "content": ".=\"𝄞\"\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_04.json",
    "content": "\"\\uD834\\uDD1E\""
  },
  {
    "path": "test/data/legacy_test_string_unicode_05.expected",
    "content": ".=\"Zażółć gęślą jaźń\"\n\n"
  },
  {
    "path": "test/data/legacy_test_string_unicode_05.json",
    "content": "\"Zażółć gęślą jaźń\""
  },
  {
    "path": "test/data/test_array_08.expected",
    "content": ".=[]\n.[0]=1\n"
  },
  {
    "path": "test/data/test_array_08.json",
    "content": "[1,]\n"
  },
  {
    "path": "test/data/test_object_05.expected",
    "content": ".={}\n.count=1234\n"
  },
  {
    "path": "test/data/test_object_05.json",
    "content": "{ \"count\" : 1234, }\n"
  },
  {
    "path": "test/generate_expected.py",
    "content": "# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom __future__ import print_function\nimport glob\nimport os.path\nfor path in glob.glob('*.json'):\n    text = file(path,'rt').read()\n    target = os.path.splitext(path)[0] + '.expected'\n    if os.path.exists(target):\n        print('skipping:', target)\n    else:\n        print('creating:', target)\n        file(target,'wt').write(text)\n\n"
  },
  {
    "path": "test/jsonchecker/fail1.json",
    "content": "\"A JSON payload should be an object or array, not a string.\""
  },
  {
    "path": "test/jsonchecker/fail10.json",
    "content": "{\"Extra value after close\": true} \"misplaced quoted value\""
  },
  {
    "path": "test/jsonchecker/fail11.json",
    "content": "{\"Illegal expression\": 1 + 2}"
  },
  {
    "path": "test/jsonchecker/fail12.json",
    "content": "{\"Illegal invocation\": alert()}"
  },
  {
    "path": "test/jsonchecker/fail13.json",
    "content": "{\"Numbers cannot have leading zeroes\": 013}"
  },
  {
    "path": "test/jsonchecker/fail14.json",
    "content": "{\"Numbers cannot be hex\": 0x14}"
  },
  {
    "path": "test/jsonchecker/fail15.json",
    "content": "[\"Illegal backslash escape: \\x15\"]"
  },
  {
    "path": "test/jsonchecker/fail16.json",
    "content": "[\\naked]"
  },
  {
    "path": "test/jsonchecker/fail17.json",
    "content": "[\"Illegal backslash escape: \\017\"]"
  },
  {
    "path": "test/jsonchecker/fail18.json",
    "content": "[[[[[[[[[[[[[[[[[[[[\"Too deep\"]]]]]]]]]]]]]]]]]]]]"
  },
  {
    "path": "test/jsonchecker/fail19.json",
    "content": "{\"Missing colon\" null}"
  },
  {
    "path": "test/jsonchecker/fail2.json",
    "content": "[\"Unclosed array\""
  },
  {
    "path": "test/jsonchecker/fail20.json",
    "content": "{\"Double colon\":: null}"
  },
  {
    "path": "test/jsonchecker/fail21.json",
    "content": "{\"Comma instead of colon\", null}"
  },
  {
    "path": "test/jsonchecker/fail22.json",
    "content": "[\"Colon instead of comma\": false]"
  },
  {
    "path": "test/jsonchecker/fail23.json",
    "content": "[\"Bad value\", truth]"
  },
  {
    "path": "test/jsonchecker/fail24.json",
    "content": "['single quote']"
  },
  {
    "path": "test/jsonchecker/fail25.json",
    "content": "[\"\ttab\tcharacter\tin\tstring\t\"]"
  },
  {
    "path": "test/jsonchecker/fail26.json",
    "content": "[\"tab\\   character\\   in\\  string\\  \"]"
  },
  {
    "path": "test/jsonchecker/fail27.json",
    "content": "[\"line\nbreak\"]"
  },
  {
    "path": "test/jsonchecker/fail28.json",
    "content": "[\"line\\\nbreak\"]"
  },
  {
    "path": "test/jsonchecker/fail29.json",
    "content": "[0e]"
  },
  {
    "path": "test/jsonchecker/fail3.json",
    "content": "{unquoted_key: \"keys must be quoted\"}"
  },
  {
    "path": "test/jsonchecker/fail30.json",
    "content": "[0e+]"
  },
  {
    "path": "test/jsonchecker/fail31.json",
    "content": "[0e+-1]"
  },
  {
    "path": "test/jsonchecker/fail32.json",
    "content": "{\"Comma instead if closing brace\": true,"
  },
  {
    "path": "test/jsonchecker/fail33.json",
    "content": "[\"mismatch\"}"
  },
  {
    "path": "test/jsonchecker/fail4.json",
    "content": "[\"extra comma\",]"
  },
  {
    "path": "test/jsonchecker/fail5.json",
    "content": "[\"double extra comma\",,]"
  },
  {
    "path": "test/jsonchecker/fail6.json",
    "content": "[   , \"<-- missing value\"]"
  },
  {
    "path": "test/jsonchecker/fail7.json",
    "content": "[\"Comma after the close\"],"
  },
  {
    "path": "test/jsonchecker/fail8.json",
    "content": "[\"Extra close\"]]"
  },
  {
    "path": "test/jsonchecker/fail9.json",
    "content": "{\"Extra comma\": true,}"
  },
  {
    "path": "test/jsonchecker/pass1.json",
    "content": "[\n    \"JSON Test Pattern pass1\",\n    {\"object with 1 member\":[\"array with 1 element\"]},\n    {},\n    [],\n    -42,\n    true,\n    false,\n    null,\n    {\n        \"integer\": 1234567890,\n        \"real\": -9876.543210,\n        \"e\": 0.123456789e-12,\n        \"E\": 1.234567890E+34,\n        \"\":  23456789012E66,\n        \"zero\": 0,\n        \"one\": 1,\n        \"space\": \" \",\n        \"quote\": \"\\\"\",\n        \"backslash\": \"\\\\\",\n        \"controls\": \"\\b\\f\\n\\r\\t\",\n        \"slash\": \"/ & \\/\",\n        \"alpha\": \"abcdefghijklmnopqrstuvwyz\",\n        \"ALPHA\": \"ABCDEFGHIJKLMNOPQRSTUVWYZ\",\n        \"digit\": \"0123456789\",\n        \"0123456789\": \"digit\",\n        \"special\": \"`1~!@#$%^&*()_+-={':[,]}|;.</>?\",\n        \"hex\": \"\\u0123\\u4567\\u89AB\\uCDEF\\uabcd\\uef4A\",\n        \"true\": true,\n        \"false\": false,\n        \"null\": null,\n        \"array\":[  ],\n        \"object\":{  },\n        \"address\": \"50 St. James Street\",\n        \"url\": \"http://www.JSON.org/\",\n        \"comment\": \"// /* <!-- --\",\n        \"# -- --> */\": \" \",\n        \" s p a c e d \" :[1,2 , 3\n\n,\n\n4 , 5        ,          6           ,7        ],\"compact\":[1,2,3,4,5,6,7],\n        \"jsontext\": \"{\\\"object with 1 member\\\":[\\\"array with 1 element\\\"]}\",\n        \"quotes\": \"&#34; \\u0022 %22 0x22 034 &#x22;\",\n        \"\\/\\\\\\\"\\uCAFE\\uBABE\\uAB98\\uFCDE\\ubcda\\uef4A\\b\\f\\n\\r\\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?\"\n: \"A key can be any string\"\n    },\n    0.5 ,98.6\n,\n99.44\n,\n\n1066,\n1e1,\n0.1e1,\n1e-1,\n1e00,2e+00,2e-00\n,\"rosebud\"]"
  },
  {
    "path": "test/jsonchecker/pass2.json",
    "content": "[[[[[[[[[[[[[[[[[[[\"Not too deep\"]]]]]]]]]]]]]]]]]]]"
  },
  {
    "path": "test/jsonchecker/pass3.json",
    "content": "{\n    \"JSON Test Pattern pass3\": {\n        \"The outermost value\": \"must be an object or array.\",\n        \"In this test\": \"It is an object.\"\n    }\n}\n"
  },
  {
    "path": "test/jsonchecker/readme.txt",
    "content": "Test suite from http://json.org/JSON_checker/.\n\nIf the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files.\n"
  },
  {
    "path": "test/pyjsontestrunner.py",
    "content": "# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\n\"\"\"Simple implementation of a json test runner to run the test against\njson-py.\"\"\"\n\nfrom __future__ import print_function\nimport sys\nimport os.path\nimport json\nimport types\n\nif len(sys.argv) != 2:\n    print(\"Usage: %s input-json-file\", sys.argv[0])\n    sys.exit(3)\n\ninput_path = sys.argv[1]\nbase_path = os.path.splitext(input_path)[0]\nactual_path = base_path + '.actual'\nrewrite_path = base_path + '.rewrite'\nrewrite_actual_path = base_path + '.actual-rewrite'\n\ndef valueTreeToString(fout, value, path = '.'):\n    ty = type(value)\n    if ty  is types.DictType:\n        fout.write('%s={}\\n' % path)\n        suffix = path[-1] != '.' and '.' or ''\n        names = value.keys()\n        names.sort()\n        for name in names:\n            valueTreeToString(fout, value[name], path + suffix + name)\n    elif ty is types.ListType:\n        fout.write('%s=[]\\n' % path)\n        for index, childValue in zip(xrange(0,len(value)), value):\n            valueTreeToString(fout, childValue, path + '[%d]' % index)\n    elif ty is types.StringType:\n        fout.write('%s=\"%s\"\\n' % (path,value))\n    elif ty is types.IntType:\n        fout.write('%s=%d\\n' % (path,value))\n    elif ty is types.FloatType:\n        fout.write('%s=%.16g\\n' % (path,value))\n    elif value is True:\n        fout.write('%s=true\\n' % path)\n    elif value is False:\n        fout.write('%s=false\\n' % path)\n    elif value is None:\n        fout.write('%s=null\\n' % path)\n    else:\n        assert False and \"Unexpected value type\"\n\ndef parseAndSaveValueTree(input, actual_path):\n    root = json.loads(input)\n    fout = file(actual_path, 'wt')\n    valueTreeToString(fout, root)\n    fout.close()\n    return root\n\ndef rewriteValueTree(value, rewrite_path):\n    rewrite = json.dumps(value)\n    #rewrite = rewrite[1:-1]  # Somehow the string is quoted ! jsonpy bug ?\n    file(rewrite_path, 'wt').write(rewrite + '\\n')\n    return rewrite\n\ninput = file(input_path, 'rt').read()\nroot = parseAndSaveValueTree(input, actual_path)\nrewrite = rewriteValueTree(json.write(root), rewrite_path)\nrewrite_root = parseAndSaveValueTree(rewrite, rewrite_actual_path)\n\nsys.exit(0)\n"
  },
  {
    "path": "test/runjsontests.py",
    "content": "# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\nfrom io import open\nfrom glob import glob\nimport sys\nimport os\nimport os.path\nimport optparse\n\nVALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes '\n\ndef getStatusOutput(cmd):\n    \"\"\"\n    Return int, unicode (for both Python 2 and 3).\n    Note: os.popen().close() would return None for 0.\n    \"\"\"\n    print(cmd, file=sys.stderr)\n    pipe = os.popen(cmd)\n    process_output = pipe.read()\n    try:\n        # We have been using os.popen(). When we read() the result\n        # we get 'str' (bytes) in py2, and 'str' (unicode) in py3.\n        # Ugh! There must be a better way to handle this.\n        process_output = process_output.decode('utf-8')\n    except AttributeError:\n        pass  # python3\n    status = pipe.close()\n    return status, process_output\ndef compareOutputs(expected, actual, message):\n    expected = expected.strip().replace('\\r','').split('\\n')\n    actual = actual.strip().replace('\\r','').split('\\n')\n    diff_line = 0\n    max_line_to_compare = min(len(expected), len(actual))\n    for index in range(0,max_line_to_compare):\n        if expected[index].strip() != actual[index].strip():\n            diff_line = index + 1\n            break\n    if diff_line == 0 and len(expected) != len(actual):\n        diff_line = max_line_to_compare+1\n    if diff_line == 0:\n        return None\n    def safeGetLine(lines, index):\n        index += -1\n        if index >= len(lines):\n            return ''\n        return lines[index].strip()\n    return \"\"\"  Difference in %s at line %d:\n  Expected: '%s'\n  Actual:   '%s'\n\"\"\" % (message, diff_line,\n       safeGetLine(expected,diff_line),\n       safeGetLine(actual,diff_line))\n\ndef safeReadFile(path):\n    try:\n        return open(path, 'rt', encoding = 'utf-8').read()\n    except IOError as e:\n        return '<File \"%s\" is missing: %s>' % (path,e)\n\nclass FailError(Exception):\n    def __init__(self, msg):\n        super(Exception, self).__init__(msg)\n\ndef runAllTests(jsontest_executable_path, input_path = None,\n                 use_valgrind=False, with_json_checker=False,\n                 writerClass='StyledWriter'):\n    if not input_path:\n        input_path = os.path.join(os.getcwd(), 'data')\n\n    if os.path.isdir(input_path):\n        tests = [\n            os.path.normpath(os.path.abspath(test))\n            for test in glob(os.path.join(input_path, '*.json'))\n        ]\n\n        if with_json_checker:\n            tests += [\n                os.path.normpath(os.path.abspath(test))\n                for test in glob(os.path.join(input_path, '../jsonchecker', '*.json'))\n            ]\n    else:\n        tests = [input_path]\n\n    # These tests fail with strict json support, but pass with JsonCPP's\n    # extra leniency features. When adding a new exclusion to this list,\n    # remember to add the test's number and reasoning here:\n    known = [\"fail{}.json\".format(n) for n in [\n        4, 9, # fail because we allow trailing commas\n        7,    # fails because we allow commas after close\n        8,    # fails because we allow extra close\n        10,   # fails because we allow extra values after close\n        13,   # fails because we allow leading zeroes in numbers\n        18,   # fails because we allow deeply nested values\n        25,   # fails because we allow tab characters in strings\n        27,   # fails because we allow string line breaks\n    ]]\n\n    tests = [\n        test for test in tests\n        if os.path.basename(test) not in known or\n            os.path.basename(os.path.dirname(test)) != \"jsonchecker\"\n    ]\n\n    failed_tests = []\n    valgrind_path = use_valgrind and VALGRIND_CMD or ''\n    for input_path in tests:\n        expect_failure = os.path.basename(input_path).startswith('fail')\n        is_json_checker_test = os.path.basename(os.path.dirname(input_path)) == \"jsonchecker\"\n        is_parse_only = is_json_checker_test or expect_failure\n        is_strict_test = ('_strict_' in os.path.basename(input_path)) or is_json_checker_test\n        print('TESTING:', input_path, end=' ')\n        options = is_parse_only and '--parse-only' or ''\n        options += is_strict_test and ' --strict' or ''\n        options += ' --json-writer %s'%writerClass\n        cmd = '%s%s %s \"%s\"' % (            valgrind_path, jsontest_executable_path, options,\n            input_path)\n        status, process_output = getStatusOutput(cmd)\n        if is_parse_only:\n            if expect_failure:\n                if not status:\n                    print('FAILED')\n                    failed_tests.append((input_path, 'Parsing should have failed:\\n%s' %\n                                          safeReadFile(input_path)))\n                else:\n                    print('OK')\n            else:\n                if status:\n                    print('FAILED')\n                    failed_tests.append((input_path, 'Parsing failed:\\n' + process_output))\n                else:\n                    print('OK')\n        else:\n            base_path = os.path.splitext(input_path)[0]\n            actual_output = safeReadFile(base_path + '.actual')\n            actual_rewrite_output = safeReadFile(base_path + '.actual-rewrite')\n            open(base_path + '.process-output', 'wt', encoding = 'utf-8').write(process_output)\n            if status:\n                print('parsing failed')\n                failed_tests.append((input_path, 'Parsing failed:\\n' + process_output))\n            else:\n                expected_output_path = os.path.splitext(input_path)[0] + '.expected'\n                expected_output = open(expected_output_path, 'rt', encoding = 'utf-8').read()\n                detail = (compareOutputs(expected_output, actual_output, 'input')\n                            or compareOutputs(expected_output, actual_rewrite_output, 'rewrite'))\n                if detail:\n                    print('FAILED')\n                    failed_tests.append((input_path, detail))\n                else:\n                    print('OK')\n\n    if failed_tests:\n        print()\n        print('Failure details:')\n        for failed_test in failed_tests:\n            print('* Test', failed_test[0])\n            print(failed_test[1])\n            print()\n        print('Test results: %d passed, %d failed.' % (len(tests)-len(failed_tests),\n                                                       len(failed_tests)))\n        raise FailError(repr(failed_tests))\n    else:\n        print('All %d tests passed.' % len(tests))\n\ndef main():\n    from optparse import OptionParser\n    parser = OptionParser(usage=\"%prog [options] <path to jsontestrunner.exe> [test case directory]\")\n    parser.add_option(\"--valgrind\",\n                  action=\"store_true\", dest=\"valgrind\", default=False,\n                  help=\"run all the tests using valgrind to detect memory leaks\")\n    parser.add_option(\"-c\", \"--with-json-checker\",\n                  action=\"store_true\", dest=\"with_json_checker\", default=False,\n                  help=\"run all the tests from the official JSONChecker test suite of json.org\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n\n    if len(args) < 1 or len(args) > 2:\n        parser.error('Must provides at least path to jsontestrunner executable.')\n        sys.exit(1)\n\n    jsontest_executable_path = os.path.normpath(os.path.abspath(args[0]))\n    if len(args) > 1:\n        input_path = os.path.normpath(os.path.abspath(args[1]))\n    else:\n        input_path = None\n    runAllTests(jsontest_executable_path, input_path,\n                         use_valgrind=options.valgrind,\n                         with_json_checker=options.with_json_checker,\n                         writerClass='StyledWriter')\n    runAllTests(jsontest_executable_path, input_path,\n                         use_valgrind=options.valgrind,\n                         with_json_checker=options.with_json_checker,\n                         writerClass='StyledStreamWriter')\n    runAllTests(jsontest_executable_path, input_path,\n                         use_valgrind=options.valgrind,\n                         with_json_checker=options.with_json_checker,\n                         writerClass='BuiltStyledStreamWriter')\n\nif __name__ == '__main__':\n    try:\n        main()\n    except FailError:\n        sys.exit(1)\n"
  },
  {
    "path": "test/rununittests.py",
    "content": "# Copyright 2009 Baptiste Lepilleur and The JsonCpp Authors\n# Distributed under MIT license, or public domain if desired and\n# recognized in your jurisdiction.\n# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE\n\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\nfrom io import open\nfrom glob import glob\nimport sys\nimport os\nimport os.path\nimport subprocess\nimport optparse\n\nVALGRIND_CMD = 'valgrind --tool=memcheck --leak-check=yes --undef-value-errors=yes'\n\nclass TestProxy(object):\n    def __init__(self, test_exe_path, use_valgrind=False):\n        self.test_exe_path = os.path.normpath(os.path.abspath(test_exe_path))\n        self.use_valgrind = use_valgrind\n\n    def run(self, options):\n        if self.use_valgrind:\n            cmd = VALGRIND_CMD.split()\n        else:\n            cmd = []\n        cmd.extend([self.test_exe_path, '--test-auto'] + options)\n        try:\n            process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)\n        except:\n            print(cmd)\n            raise\n        stdout = process.communicate()[0]\n        if process.returncode:\n            return False, stdout\n        return True, stdout\n\ndef runAllTests(exe_path, use_valgrind=False):\n    test_proxy = TestProxy(exe_path, use_valgrind=use_valgrind)\n    status, test_names = test_proxy.run(['--list-tests'])\n    if not status:\n        print(\"Failed to obtain unit tests list:\\n\" + test_names, file=sys.stderr)\n        return 1\n    test_names = [name.strip() for name in test_names.decode('utf-8').strip().split('\\n')]\n    failures = []\n    for name in test_names:\n        print('TESTING %s:' % name, end=' ')\n        succeed, result = test_proxy.run(['--test', name])\n        if succeed:\n            print('OK')\n        else:\n            failures.append((name, result))\n            print('FAILED')\n    failed_count = len(failures)\n    pass_count = len(test_names) - failed_count\n    if failed_count:\n        print()\n        for name, result in failures:\n            print(result)\n        print('%d/%d tests passed (%d failure(s))' % (            pass_count, len(test_names), failed_count))\n        return 1\n    else:\n        print('All %d tests passed' % len(test_names))\n        return 0\n\ndef main():\n    from optparse import OptionParser\n    parser = OptionParser(usage=\"%prog [options] <path to test_lib_json.exe>\")\n    parser.add_option(\"--valgrind\",\n                  action=\"store_true\", dest=\"valgrind\", default=False,\n                  help=\"run all the tests using valgrind to detect memory leaks\")\n    parser.enable_interspersed_args()\n    options, args = parser.parse_args()\n\n    if len(args) != 1:\n        parser.error('Must provides at least path to test_lib_json executable.')\n        sys.exit(1)\n\n    exit_code = runAllTests(args[0], use_valgrind=options.valgrind)\n    sys.exit(exit_code)\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "version.in",
    "content": "@jsoncpp_VERSION@\n"
  }
]