jsoncons/0.173.4

A C++, header-only library for constructing JSON and JSON-like data formats, with JSON Pointer, JSON Patch, JSON Schema, JSONPath, JMESPath, CSV, MessagePack, CBOR, BSON, UBJSON
Recipe info
2024-02-05

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
jsoncons/0.173.4

Using jsoncons

Note

If you are new with Conan, we recommend to read the section how to consume packages.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
jsoncons/0.173.4
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("jsoncons/0.173.4")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): jsoncons
  • CMake target name(s): jsoncons
  • pkg-config file name(s): jsoncons.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(jsoncons REQUIRED)
# ...
target_link_libraries(YOUR_TARGET jsoncons)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the jsoncons homepage listed above:

#include "jsoncons/allocator_holder.hpp"
#include "jsoncons/allocator_set.hpp"
#include "jsoncons/basic_json.hpp"
#include "jsoncons/bigint.hpp"
#include "jsoncons/byte_string.hpp"
#include "jsoncons/config/binary_config.hpp"
#include "jsoncons/config/compiler_support.hpp"
#include "jsoncons/config/jsoncons_config.hpp"
#include "jsoncons/config/version.hpp"
#include "jsoncons/conv_error.hpp"
#include "jsoncons/decode_json.hpp"
#include "jsoncons/decode_traits.hpp"
#include "jsoncons/detail/endian.hpp"
#include "jsoncons/detail/grisu3.hpp"
#include "jsoncons/detail/heap_string.hpp"
#include "jsoncons/detail/optional.hpp"
#include "jsoncons/detail/parse_number.hpp"
#include "jsoncons/detail/span.hpp"
#include "jsoncons/detail/string_view.hpp"
#include "jsoncons/detail/write_number.hpp"
#include "jsoncons/encode_json.hpp"
#include "jsoncons/encode_traits.hpp"
#include "jsoncons/extension_traits.hpp"
#include "jsoncons/item_event_reader.hpp"
#include "jsoncons/item_event_visitor.hpp"
#include "jsoncons/json.hpp"
#include "jsoncons/json_array.hpp"
#include "jsoncons/json_content_handler.hpp"
#include "jsoncons/json_cursor.hpp"
#include "jsoncons/json_decoder.hpp"
#include "jsoncons/json_encoder.hpp"
#include "jsoncons/json_error.hpp"
#include "jsoncons/json_exception.hpp"
#include "jsoncons/json_filter.hpp"
#include "jsoncons/json_fwd.hpp"
#include "jsoncons/json_object.hpp"
#include "jsoncons/json_options.hpp"
#include "jsoncons/json_parser.hpp"
#include "jsoncons/json_reader.hpp"
#include "jsoncons/json_traits_macros.hpp"
#include "jsoncons/json_traits_macros_deprecated.hpp"
#include "jsoncons/json_type.hpp"
#include "jsoncons/json_type_traits.hpp"
#include "jsoncons/json_visitor.hpp"
#include "jsoncons/pretty_print.hpp"
#include "jsoncons/ser_context.hpp"
#include "jsoncons/sink.hpp"
#include "jsoncons/source.hpp"
#include "jsoncons/source_adaptor.hpp"
#include "jsoncons/staj_cursor.hpp"
#include "jsoncons/staj_iterator.hpp"
#include "jsoncons/tag_type.hpp"
#include "jsoncons/text_source_adaptor.hpp"
#include "jsoncons/typed_array_view.hpp"
#include "jsoncons/unicode_traits.hpp"
#include "jsoncons/uri.hpp"
#include "jsoncons/value_converter.hpp"
#include "jsoncons_ext/bson/bson.hpp"
#include "jsoncons_ext/bson/bson_cursor.hpp"
#include "jsoncons_ext/bson/bson_decimal128.hpp"
#include "jsoncons_ext/bson/bson_decimal128.hpp.bak"
#include "jsoncons_ext/bson/bson_encoder.hpp"
#include "jsoncons_ext/bson/bson_error.hpp"
#include "jsoncons_ext/bson/bson_oid.hpp"
#include "jsoncons_ext/bson/bson_options.hpp"
#include "jsoncons_ext/bson/bson_parser.hpp"
#include "jsoncons_ext/bson/bson_reader.hpp"
#include "jsoncons_ext/bson/bson_type.hpp"
#include "jsoncons_ext/bson/decode_bson.hpp"
#include "jsoncons_ext/bson/encode_bson.hpp"
#include "jsoncons_ext/cbor/cbor.hpp"
#include "jsoncons_ext/cbor/cbor_cursor.hpp"
#include "jsoncons_ext/cbor/cbor_detail.hpp"
#include "jsoncons_ext/cbor/cbor_encoder.hpp"
#include "jsoncons_ext/cbor/cbor_error.hpp"
#include "jsoncons_ext/cbor/cbor_event_reader.hpp"
#include "jsoncons_ext/cbor/cbor_options.hpp"
#include "jsoncons_ext/cbor/cbor_parser.hpp"
#include "jsoncons_ext/cbor/cbor_reader.hpp"
#include "jsoncons_ext/cbor/decode_cbor.hpp"
#include "jsoncons_ext/cbor/encode_cbor.hpp"
#include "jsoncons_ext/csv/csv.hpp"
#include "jsoncons_ext/csv/csv_cursor.hpp"
#include "jsoncons_ext/csv/csv_encoder.hpp"
#include "jsoncons_ext/csv/csv_error.hpp"
#include "jsoncons_ext/csv/csv_options.hpp"
#include "jsoncons_ext/csv/csv_parser.hpp"
#include "jsoncons_ext/csv/csv_reader.hpp"
#include "jsoncons_ext/csv/csv_serializer.hpp"
#include "jsoncons_ext/csv/decode_csv.hpp"
#include "jsoncons_ext/csv/encode_csv.hpp"
#include "jsoncons_ext/jmespath/jmespath.hpp"
#include "jsoncons_ext/jmespath/jmespath_error.hpp"
#include "jsoncons_ext/jsonpatch/jsonpatch.hpp"
#include "jsoncons_ext/jsonpatch/jsonpatch_error.hpp"
#include "jsoncons_ext/jsonpath/expression.hpp"
#include "jsoncons_ext/jsonpath/flatten.hpp"
#include "jsoncons_ext/jsonpath/json_location.hpp"
#include "jsoncons_ext/jsonpath/json_location_parser.hpp"
#include "jsoncons_ext/jsonpath/json_query.hpp"
#include "jsoncons_ext/jsonpath/jsonpath.hpp"
#include "jsoncons_ext/jsonpath/jsonpath_error.hpp"
#include "jsoncons_ext/jsonpath/jsonpath_expression.hpp"
#include "jsoncons_ext/jsonpath/jsonpath_parser.hpp"
#include "jsoncons_ext/jsonpath/jsonpath_selector.hpp"
#include "jsoncons_ext/jsonpath/jsonpath_utilities.hpp"
#include "jsoncons_ext/jsonpath/path_node.hpp"
#include "jsoncons_ext/jsonpointer/jsonpointer.hpp"
#include "jsoncons_ext/jsonpointer/jsonpointer_error.hpp"
#include "jsoncons_ext/jsonschema/common/compilation_context.hpp"
#include "jsoncons_ext/jsonschema/common/format_validator.hpp"
#include "jsoncons_ext/jsonschema/common/keyword_validator.hpp"
#include "jsoncons_ext/jsonschema/common/keywords.hpp"
#include "jsoncons_ext/jsonschema/common/schema_location.hpp"
#include "jsoncons_ext/jsonschema/common/schema_parser.hpp"
#include "jsoncons_ext/jsonschema/draft7/schema_draft7.hpp"
#include "jsoncons_ext/jsonschema/draft7/schema_parser_impl.hpp"
#include "jsoncons_ext/jsonschema/json_schema.hpp"
#include "jsoncons_ext/jsonschema/json_validator.hpp"
#include "jsoncons_ext/jsonschema/jsonschema.hpp"
#include "jsoncons_ext/jsonschema/jsonschema_error.hpp"
#include "jsoncons_ext/jsonschema/schema_factory.hpp"
#include "jsoncons_ext/jsonschema/schema_version.hpp"
#include "jsoncons_ext/mergepatch/mergepatch.hpp"
#include "jsoncons_ext/msgpack/decode_msgpack.hpp"
#include "jsoncons_ext/msgpack/encode_msgpack.hpp"
#include "jsoncons_ext/msgpack/msgpack.hpp"
#include "jsoncons_ext/msgpack/msgpack_cursor.hpp"
#include "jsoncons_ext/msgpack/msgpack_encoder.hpp"
#include "jsoncons_ext/msgpack/msgpack_error.hpp"
#include "jsoncons_ext/msgpack/msgpack_event_reader.hpp"
#include "jsoncons_ext/msgpack/msgpack_options.hpp"
#include "jsoncons_ext/msgpack/msgpack_parser.hpp"
#include "jsoncons_ext/msgpack/msgpack_reader.hpp"
#include "jsoncons_ext/msgpack/msgpack_type.hpp"
#include "jsoncons_ext/ubjson/decode_ubjson.hpp"
#include "jsoncons_ext/ubjson/encode_ubjson.hpp"
#include "jsoncons_ext/ubjson/ubjson.hpp"
#include "jsoncons_ext/ubjson/ubjson_cursor.hpp"
#include "jsoncons_ext/ubjson/ubjson_encoder.hpp"
#include "jsoncons_ext/ubjson/ubjson_error.hpp"
#include "jsoncons_ext/ubjson/ubjson_options.hpp"
#include "jsoncons_ext/ubjson/ubjson_parser.hpp"
#include "jsoncons_ext/ubjson/ubjson_reader.hpp"
#include "jsoncons_ext/ubjson/ubjson_type.hpp"