• zbvs
    了解作者
  • LINUX
    开发工具
  • 242KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 1
    下载次数
  • 2019-03-26 17:48
    上传日期
json library for programmer
jsoncpp-master.zip
  • devtools
  • agent_vmxp.json
    589B
  • tarball.py
    2.2KB
  • fixeol.py
    2.2KB
  • licenseupdater.py
    3.9KB
  • batchbuild.py
    11.2KB
  • __init__.py
    250B
  • antglob.py
    7.7KB
  • agent_vmw7.json
    898B
  • test
  • jsonchecker
  • fail19.json
    22B
  • fail22.json
    33B
  • readme.txt
    173B
  • fail15.json
    34B
  • fail13.json
    43B
  • fail18.json
    50B
  • pass3.json
    148B
  • fail11.json
    29B
  • fail27.json
    14B
  • fail17.json
    34B
  • fail10.json
    58B
  • pass2.json
    52B
  • fail12.json
    31B
  • fail33.json
    12B
  • fail32.json
    40B
  • fail23.json
    20B
  • fail25.json
    29B
  • fail31.json
    7B
  • fail8.json
    16B
  • fail24.json
    16B
  • fail7.json
    26B
  • fail28.json
    15B
  • fail6.json
    26B
  • fail29.json
    4B
  • fail21.json
    32B
  • fail3.json
    37B
  • fail1.json
    60B
  • fail9.json
    22B
  • fail2.json
    17B
  • pass1.json
    1.4KB
  • fail14.json
    31B
  • fail26.json
    38B
  • fail16.json
    8B
  • fail20.json
    23B
  • fail4.json
    16B
  • fail30.json
    5B
  • fail5.json
    24B
  • data
  • test_string_01.expected
    98B
  • test_real_04.expected
    26B
  • test_array_07.expected
    31KB
  • test_string_03.json
    37B
  • test_basic_06.expected
    8B
  • test_real_12.expected
    53B
  • test_preserve_comment_01.json
    206B
  • test_real_05.expected
    27B
  • test_array_05.json
    387B
  • test_string_unicode_02.json
    8B
  • test_string_02.json
    1.9KB
  • test_real_02.json
    71B
  • test_real_08.json
    208B
  • test_string_02.expected
    1.8KB
  • test_object_02.expected
    17B
  • test_complex_01.json
    247B
  • test_object_03.json
    64B
  • test_comment_01.expected
    146B
  • test_array_02.expected
    12B
  • test_string_unicode_01.expected
    6B
  • test_basic_04.json
    10B
  • test_string_unicode_04.expected
    9B
  • test_array_05.expected
    877B
  • test_string_01.json
    99B
  • test_string_04.json
    16B
  • test_integer_02.expected
    36B
  • test_string_unicode_01.json
    8B
  • test_basic_08.json
    27B
  • test_basic_04.expected
    12B
  • test_real_07.expected
    29B
  • test_complex_01.expected
    338B
  • test_basic_09.expected
    31B
  • test_string_unicode_05.json
    28B
  • test_preserve_comment_01.expected
    150B
  • test_integer_01.json
    33B
  • test_comment_01.json
    206B
  • test_real_01.expected
    64B
  • test_basic_02.json
    12B
  • fail_test_array_01.json
    9B
  • test_real_09.json
    218B
  • test_large_01.json
    9.3KB
  • test_integer_03.json
    35B
  • test_basic_06.json
    6B
  • test_real_11.json
    223B
  • test_real_04.json
    26B
  • test_real_09.expected
    207B
  • test_basic_01.json
    11B
  • test_basic_05.json
    6B
  • test_object_04.json
    16B
  • test_basic_01.expected
    12B
  • test_string_05.expected
    45B
内容介绍
# JsonCpp [![badge](https://img.shields.io/badge/conan.io-jsoncpp%2F1.8.0-green.svg?logo=data:image/png;base64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAA1VBMVEUAAABhlctjlstkl8tlmMtlmMxlmcxmmcxnmsxpnMxpnM1qnc1sn85voM91oM11oc1xotB2oc56pNF6pNJ2ptJ8ptJ8ptN9ptN8p9N5qNJ9p9N9p9R8qtOBqdSAqtOAqtR%2BrNSCrNJ/rdWDrNWCsNWCsNaJs9eLs9iRvNuVvdyVv9yXwd2Zwt6axN6dxt%2Bfx%2BChyeGiyuGjyuCjyuGly%2BGlzOKmzOGozuKoz%2BKqz%2BOq0OOv1OWw1OWw1eWx1eWy1uay1%2Baz1%2Baz1%2Bez2Oe02Oe12ee22ujUGwH3AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgBQkREyOxFIh/AAAAiklEQVQI12NgAAMbOwY4sLZ2NtQ1coVKWNvoc/Eq8XDr2wB5Ig62ekza9vaOqpK2TpoMzOxaFtwqZua2Bm4makIM7OzMAjoaCqYuxooSUqJALjs7o4yVpbowvzSUy87KqSwmxQfnsrPISyFzWeWAXCkpMaBVIC4bmCsOdgiUKwh3JojLgAQ4ZCE0AMm2D29tZwe6AAAAAElFTkSuQmCC)](http://www.conan.io/source/jsoncpp/1.8.0/theirix/ci) [JSON][json-org] is a lightweight data-interchange format. It can represent numbers, strings, ordered sequences of values, and collections of name/value pairs. [json-org]: http://json.org/ JsonCpp is a C++ library that allows manipulating JSON values, including serialization and deserialization to and from strings. It can also preserve existing comment in unserialization/serialization steps, making it a convenient format to store user input files. ## Documentation [JsonCpp documentation][JsonCpp-documentation] is generated using [Doxygen][]. [JsonCpp-documentation]: http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html [Doxygen]: http://www.doxygen.org ## A note on backward-compatibility * `1.y.z` is built with C++11. * `0.y.z` can be used with older compilers. * Major versions maintain binary-compatibility. ## Contributing to JsonCpp ### Building Both CMake and Meson tools are capable of generating a variety of build environments for you preferred development environment. Using cmake or meson you can generate an XCode, Visual Studio, Unix Makefile, Ninja, or other environment that fits your needs. An example of a common Meson/Ninja environment is described next. ### Building and testing with Meson/Ninja Thanks to David Seifert (@SoapGentoo), we (the maintainers) now use [meson](http://mesonbuild.com/) and [ninja](https://ninja-build.org/) to build for debugging, as well as for continuous integration (see [`./travis_scripts/meson_builder.sh`](./travis_scripts/meson_builder.sh) ). Other systems may work, but minor things like version strings might break. First, install both meson (which requires Python3) and ninja. If you wish to install to a directory other than /usr/local, set an environment variable called DESTDIR with the desired path: DESTDIR=/path/to/install/dir Then, cd jsoncpp/ BUILD_TYPE=debug #BUILD_TYPE=release LIB_TYPE=shared #LIB_TYPE=static meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE} #ninja -v -C build-${LIB_TYPE} test # This stopped working on my Mac. ninja -v -C build-${LIB_TYPE} cd build-${LIB_TYPE} meson test --no-rebuild --print-errorlogs sudo ninja install ### Building and testing with other build systems See https://github.com/open-source-parsers/jsoncpp/wiki/Building ### Running the tests manually You need to run tests manually only if you are troubleshooting an issue. In the instructions below, replace `path/to/jsontest` with the path of the `jsontest` executable that was compiled on your platform. cd test # This will run the Reader/Writer tests python runjsontests.py path/to/jsontest # This will run the Reader/Writer tests, using JSONChecker test suite # (http://www.json.org/JSON_checker/). # Notes: not all tests pass: JsonCpp is too lenient (for example, # it allows an integer to start with '0'). The goal is to improve # strict mode parsing to get all tests to pass. python runjsontests.py --with-json-checker path/to/jsontest # This will run the unit tests (mostly Value) python rununittests.py path/to/test_lib_json # You can run the tests using valgrind: python rununittests.py --valgrind path/to/test_lib_json ### Building the documentation Run the Python script `doxybuild.py` from the top directory: python doxybuild.py --doxygen=$(which doxygen) --open --with-dot See `doxybuild.py --help` for options. ### Adding a reader/writer test To add a test, you need to create two files in test/data: * a `TESTNAME.json` file, that contains the input document in JSON format. * a `TESTNAME.expected` file, that contains a flatened representation of the input document. The `TESTNAME.expected` file format is as follows: * Each line represents a JSON element of the element tree represented by the input document. * Each line has two parts: the path to access the element separated from the element value by `=`. Array and object values are always empty (i.e. represented by either `[]` or `{}`). * Element path `.` represents the root element, and is used to separate object members. `[N]` is used to specify the value of an array element at index `N`. See the examples `test_complex_01.json` and `test_complex_01.expected` to better understand element paths. ### Understanding reader/writer test output When a test is run, output files are generated beside the input test files. Below is a short description of the content of each file: * `test_complex_01.json`: input JSON document. * `test_complex_01.expected`: flattened JSON element tree used to check if parsing was corrected. * `test_complex_01.actual`: flattened JSON element tree produced by `jsontest` from reading `test_complex_01.json`. * `test_complex_01.rewrite`: JSON document written by `jsontest` using the `Json::Value` parsed from `test_complex_01.json` and serialized using `Json::StyledWritter`. * `test_complex_01.actual-rewrite`: flattened JSON element tree produced by `jsontest` from reading `test_complex_01.rewrite`. * `test_complex_01.process-output`: `jsontest` output, typically useful for understanding parsing errors. ## Using JsonCpp in your project ### Amalgamated source https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated ### The Meson Build System If you are using the [Meson Build System](http://mesonbuild.com), then you can get a wrap file by downloading it from [Meson WrapDB](https://wrapdb.mesonbuild.com/jsoncpp), or simply use `meson wrap install jsoncpp`. ### Other ways If you have trouble, see the Wiki, or post a question as an Issue. ## License See the `LICENSE` file for details. In summary, JsonCpp is licensed under the MIT license, or public domain if desired and recognized in your jurisdiction.
评论
    相关推荐
    • json.zip
      要使程序可以运行必须引入JSON-lib包,JSON-lib包同时依赖于以下的JAR包: 1.commons-lang.jar 2.commons-beanutils.jar 3.commons-collections.jar 4.commons-logging.jar 5.ezmorph.jar 6.json-lib-...
    • JSON.zip
      JSONObjec必要的所有jar包 1.json-lib-2.1-jdk15.jar 2.commons-beanutils.jar 3.commons-collections.jar 4.commons-lang.jar 5.commons-logging.jar 6.ezmorph.jar
    • json.zip
      json jar 包
    • TopoJSON.zip
      TopoJSON 是 GeoJSON 的扩展,增加了拓扑逻辑的编码。 Rather than representing geometries discretely, geometries in TopoJSON files are stitched together from shared line segments called arcs. TopoJSON ...
    • json.zip
      Java开发所需要的jar,全部在包里。JSONObject jsonObject = JSONObject.fromObject(Map);
    • JSON.zip
      原创的JSON拼接,前台JS调用,后台多集合JSON拼接,刚刚接触JSON的朋友可以来学习一下,内含JSON的JAR包,JQUERY的JS工具类
    • json.zip
      使用json格式所需要使用的包,不然就会报错。
    • JSON JSON .zip
      JSON JSON .zip JSON JSON .zip JSON JSON .zip JSON JSON .zip
    • json.zip
      Json数据转换需要的jar包
    • Json.zip
      使用fastjson 解析实体嵌套,只要一行代码就可以解析负责的json嵌套