All Projects → taocpp → Json

taocpp / Json

Licence: other
C++ header-only JSON library

Programming Languages

cpp
1120 projects
cpp17
186 projects

Projects that are alternatives of or similar to Json

Rpc.py
A fast and powerful RPC framework based on ASGI/WSGI.
Stars: ✭ 98 (-71.43%)
Mutual labels:  json, msgpack, cbor
restish
Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in
Stars: ✭ 453 (+32.07%)
Mutual labels:  json-schema, msgpack, cbor
Json
JSON for Modern C++
Stars: ✭ 27,824 (+8011.95%)
Mutual labels:  json, msgpack, cbor
Jsonform
Build forms from JSON Schema. Easily template-able. Compatible with Bootstrap 3 out of the box.
Stars: ✭ 2,416 (+604.37%)
Mutual labels:  json-schema, json
Newtonsoft.json.schema
Json.NET Schema is a powerful, complete and easy to use JSON Schema framework for .NET
Stars: ✭ 167 (-51.31%)
Mutual labels:  json-schema, json
Staticjson
Fast, direct and static typed parsing of JSON with C++
Stars: ✭ 177 (-48.4%)
Mutual labels:  json-schema, json
Npoint
JSON storage bins with schema validation
Stars: ✭ 116 (-66.18%)
Mutual labels:  json-schema, json
Vue Json Edit
Visual JSON editor built as an vue component. Provides a basic GUI
Stars: ✭ 207 (-39.65%)
Mutual labels:  json-schema, json
React Json Editor
A dynamic form component for react using JSON-Schema.
Stars: ✭ 201 (-41.4%)
Mutual labels:  json-schema, json
Jsonon
A json online view
Stars: ✭ 228 (-33.53%)
Mutual labels:  json-schema, json
Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (-26.24%)
Mutual labels:  json-schema, json
Pyjfuzz
PyJFuzz - Python JSON Fuzzer
Stars: ✭ 342 (-0.29%)
Mutual labels:  json-schema, json
Go Jsonschema
A tool to generate Go data types from JSON Schema definitions.
Stars: ✭ 164 (-52.19%)
Mutual labels:  json-schema, json
Libvirt Hook Qemu
Libvirt hook for setting up iptables port-forwarding rules when using NAT-ed networking.
Stars: ✭ 137 (-60.06%)
Mutual labels:  json-schema, json
Json Schema Spec
The JSON Schema I-D sources
Stars: ✭ 2,441 (+611.66%)
Mutual labels:  json-schema, json
Typedload
Python library to load dynamically typed data into statically typed data structures
Stars: ✭ 120 (-65.01%)
Mutual labels:  json-schema, json
Verify Json
verify-json
Stars: ✭ 208 (-39.36%)
Mutual labels:  json-schema, json
Kotlinx.serialization
Kotlin multiplatform / multi-format serialization
Stars: ✭ 3,550 (+934.99%)
Mutual labels:  json, cbor
React Jsonschema Form
A React component for building Web forms from JSON Schema.
Stars: ✭ 10,870 (+3069.1%)
Mutual labels:  json-schema, json
Schema Registry
Confluent Schema Registry for Kafka
Stars: ✭ 1,647 (+380.17%)
Mutual labels:  json-schema, json

Welcome to taoJSON

Windows CI macOS CI Linux CI Android CI
clang-analyze clang-tidy Sanitizer CodeQL Code Coverage

taoJSON is a C++ header-only JSON library that provides a generic Value Class, uses Type Traits to interoperate with C++ types, uses an Events Interface to convert from and to JSON, JAXN, CBOR, MsgPack and UBJSON, and much more...

Documentation

Warning: The documentation is currently not quite keeping pace with what will hopefully be the last large pre-1.0.0 development burst.

Contact

Join us on Discord

For questions and suggestions regarding taoJSON, success or failure stories, and any other kind of feedback, please feel free to join our Discord server, open a discussion, an issue or a pull request on GitHub or contact the authors at taocpp(at)icemx.net.

Features

  • Supported Standards

    • RFC8259, ECMA-404: The JavaScript Object Notation (JSON) Data Interchange Format.
    • Achieves a 100% conformance score in the Native JSON Benchmark tests.
    • RFC6901: JavaScript Object Notation (JSON) Pointer.
    • RFC6902: JavaScript Object Notation (JSON) Patch.
    • RFC7049: Concise Binary Object Representation (CBOR).
    • JAXN: Relaxed JSON.
    • MsgPack: MessagePack binary format (without extensions).
    • UBJSON: Universal Binary JSON.
  • Value Class

    • JSON data model extended with non-finite number values and binary data.
    • Construction of objects and arrays via std::initializer_list.
    • Conversion from and to arbitrary user-defined types via Type Traits.
    • Built around STL containers std::variant, std::string, std::map, std::vector, etc.
    • No memory allocations by the Value class itself (the wrapped containers allocate normally).
    • Instance sharing for string, binary, Value, and user-defined types via non-owning pointers.
    • C++11 literal operator for Values, including binary data.
    • Optional Base class for Values (e.g. to annotate (sub-)values with file and line).
  • Events Interface

    • Simple, straightforward and flexible Events API.
    • Events-to-Value and Value-to-Events interfaces.
    • Parse JSON & JAXN string representation to Events.
    • Stream Events to (prettified) JSON & JAXN string representation.
    • Conversion from and to binary formats, currently CBOR, UBJSON, MsgPack.
    • Conversion from and to other JSON libraries (e.g. contrib/nlohmann.cpp).
    • Events comparison, hashing, counting, and schema validation.
    • Events Transformers to manipulate Events on-the-fly.

Status

The library is stable as in "works correctly" over months of multiple real-world applications.

The library is not stable as in "under construction"; some parts of the API are under discussion and development and might change and/or be extended before version 1.0.

This library also serves as a real-world example application of the Parsing Expression Grammar Template Library (PEGTL), which is used for parsing the JSON and JAXN representation formats.

Package Managers

You can download and install taoJSON using the Conan package manager:

conan install taocpp-json/[email protected]

The taocpp-json package in conan is kept up to date by Conan team members and community contributors. If the version is out-of-date, please create an issue or pull request on the Conan Center Index repository.

Thank You

The Art of C++

taoJSON is part of The Art of C++.

colinh d-frey uilianries

License

taoJSON is certified Open Source software. It may be used for any purpose, including commercial purposes, at absolutely no cost. It is distributed under the terms of the MIT license reproduced here.

Copyright (c) 2015-2021 Dr. Colin Hirsch and Daniel Frey

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Additional Licenses

taoJSON contains modified portions of the double-conversion library which is licensed as follows:

Copyright 2006-2011, the V8 project authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

taoJSON contains modified portions of James Edward Anhalt III's itoa library which is licensed as follows:

Copyright (c) 2017 James Edward Anhalt III - https://github.com/jeaiii/itoa

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

taoJSON contains modified portions of Ulf Adams' Ryu implementation which is licensed as follows:

Copyright 2018 Ulf Adams

The contents of this file may be used under the terms of the Apache License, Version 2.0.

(See accompanying file LICENSE.ryu or copy at http://www.apache.org/licenses/LICENSE-2.0)

Alternatively, the contents of this file may be used under the terms of the Boost Software License, Version 1.0. (See accompanying file LICENSE-Boost or copy at https://www.boost.org/LICENSE_1_0.txt)

Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].