[![JSON for Modern C++](https://raw.githubusercontent.com/nlohmann/json/master/doc/json.gif)](https://github.com/nlohmann/json/releases)
[![Build Status](https://ci.appveyor.com/api/projects/status/1acb366xfyg3qybk/branch/develop?svg=true)](https://ci.appveyor.com/project/nlohmann/json)
[![Ubuntu](https://github.com/nlohmann/json/workflows/Ubuntu/badge.svg)](https://github.com/nlohmann/json/actions?query=workflow%3AUbuntu)
[![macOS](https://github.com/nlohmann/json/workflows/macOS/badge.svg)](https://github.com/nlohmann/json/actions?query=workflow%3AmacOS)
[![Windows](https://github.com/nlohmann/json/workflows/Windows/badge.svg)](https://github.com/nlohmann/json/actions?query=workflow%3AWindows)
[![Coverage Status](https://coveralls.io/repos/github/nlohmann/json/badge.svg?branch=develop)](https://coveralls.io/github/nlohmann/json?branch=develop)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/5550/badge.svg)](https://scan.coverity.com/projects/nlohmann-json)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e0d1a9d5d6fd46fcb655c4cb930bb3e8)](https://www.codacy.com/gh/nlohmann/json/dashboard?utm_source=github.com&utm_medium=referral&utm_content=nlohmann/json&utm_campaign=Badge_Grade)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/nlohmann/json.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/nlohmann/json/context:cpp)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/json.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:json)
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/1mp10JbaANo6FUc7)
[![Documentation](https://img.shields.io/badge/docs-doxygen-blue.svg)](https://nlohmann.github.io/json/doxygen/index.html)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/nlohmann/json/master/LICENSE.MIT)
[![GitHub Releases](https://img.shields.io/github/release/nlohmann/json.svg)](https://github.com/nlohmann/json/releases)
[![GitHub Downloads](https://img.shields.io/github/downloads/nlohmann/json/total)](https://github.com/nlohmann/json/releases)
[![GitHub Issues](https://img.shields.io/github/issues/nlohmann/json.svg)](https://github.com/nlohmann/json/issues)
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/nlohmann/json.svg)](https://isitmaintained.com/project/nlohmann/json "Average time to resolve an issue")
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/289/badge)](https://bestpractices.coreinfrastructure.org/projects/289)
[![GitHub Sponsors](https://img.shields.io/badge/GitHub-Sponsors-ff69b4)](https://github.com/sponsors/nlohmann)
- [Design goals](#design-goals)
- [Sponsors](#sponsors)
- [Support](#support) ([documentation](https://json.nlohmann.me), [FAQ](https://json.nlohmann.me/home/faq/), [discussions](https://github.com/nlohmann/json/discussions), [API](https://json.nlohmann.me/api/basic_json/), [bug issues](https://github.com/nlohmann/json/issues))
- [Examples](#examples)
- [JSON as first-class data type](#json-as-first-class-data-type)
- [Serialization / Deserialization](#serialization--deserialization)
- [STL-like access](#stl-like-access)
- [Conversion from STL containers](#conversion-from-stl-containers)
- [JSON Pointer and JSON Patch](#json-pointer-and-json-patch)
- [JSON Merge Patch](#json-merge-patch)
- [Implicit conversions](#implicit-conversions)
- [Conversions to/from arbitrary types](#arbitrary-types-conversions)
- [Specializing enum conversion](#specializing-enum-conversion)
- [Binary formats (BSON, CBOR, MessagePack, and UBJSON)](#binary-formats-bson-cbor-messagepack-and-ubjson)
- [Supported compilers](#supported-compilers)
- [Integration](#integration)
- [CMake](#cmake)
- [Package Managers](#package-managers)
- [Pkg-config](#pkg-config)
- [License](#license)
- [Contact](#contact)
- [Thanks](#thanks)
- [Used third-party tools](#used-third-party-tools)
- [Projects using JSON for Modern C++](#projects-using-json-for-modern-c)
- [Notes](#notes)
- [Execute unit tests](#execute-unit-tests)
## Design goals
There are myriads of [JSON](https://json.org) libraries out there, and each may even have its reason to exist. Our class had these design goals:
- **Intuitive syntax**. In languages such as Python, JSON feels like a first class data type. We used all the operator magic of modern C++ to achieve the same feeling in your code. Check out the [examples below](#examples) and you'll know what I mean.
- **Trivial integration**. Our whole code consists of a single header file [`json.hpp`](https://github.com/nlohmann/json/blob/develop/single_include/nlohmann/json.hpp). That's it. No library, no subproject, no dependencies, no complex build system. The class is written in vanilla C++11. All in all, everything should require no adjustment of your compiler flags or project settings.
- **Serious testing**. Our class is heavily [unit-tested](https://github.com/nlohmann/json/tree/develop/test/src) and covers [100%](https://coveralls.io/r/nlohmann/json) of the code, including all exceptional behavior. Furthermore, we checked with [Valgrind](https://valgrind.org) and the [Clang Sanitizers](https://clang.llvm.org/docs/index.html) that there are no memory leaks. [Google OSS-Fuzz](https://github.com/google/oss-fuzz/tree/master/projects/json) additionally runs fuzz tests against all parsers 24/7, effectively executing billions of tests so far. To maintain high quality, the project is following the [Core Infrastructure Initiative (CII) best practices](https://bestpractices.coreinfrastructure.org/projects/289).
Other aspects were not so important to us:
- **Memory efficiency**. Each JSON object has an overhead of one pointer (the maximal size of a union) and one enumeration element (1 byte). The default generalization uses the following C++ data types: `std::string` for strings, `int64_t`, `uint64_t` or `double` for numbers, `std::map` for objects, `std::vector` for arrays, and `bool` for Booleans. However, you can template the generalized class `basic_json` to your needs.
- **Speed**. There are certainly [faster JSON libraries](https://github.com/miloyip/nativejson-benchmark#parsing-time) out there. However, if your goal is to speed up your development by adding JSON support with a single header, then this library is the way to go. If you know how to use a `std::vector` or `std::map`, you are already set.
See the [contribution guidelines](https://github.com/nlohmann/json/blob/master/.github/CONTRIBUTING.md#please-dont) for more information.
## Sponsors
You can sponsor this library at [GitHub Sponsors](https://github.com/sponsors/nlohmann).
### :label: Named Sponsors
- [Michael Hartmann](https://github.com/reFX-Mike)
- [Stefan Hagen](https://github.com/sthagen)
- [Steve Sperandeo](https://github.com/homer6)
- [Robert Jefe Lindstädt](https://github.com/eljefedelrodeodeljefe)
- [Steve Wagner](https://github.com/ciroque)
Thanks everyone!
## Support
:question: If you have a **question**, please check if it is already answered in the [**FAQ**](https://json.nlohmann.me/home/faq/) or the [**Q&A**](https://github.com/nlohmann/json/discussions/categories/q-a) section. If not, please [**ask a new question**](https://github.com/nlohmann/json/discussions/new) there.
:books: If you want to **learn more** about how to use the library, check out the rest of the [**README**](#examples), have a look at [**code examples**](https://github.com/nlohmann/json/tree/develop/doc/examples), or browse through the [**help pages**](https://json.nlohmann.me).
:construction: If you want to understand the **API** better, check out the [**API Reference**](https://json.nlohmann.me/api/basic_json/) or the [**Doxygen documentation**](https://json.nlohmann.me/doxygen/index.html).
:bug: If you found a **bug**, please check the [**FAQ**](https://json.nlohmann.me/home/fa
没有合适的资源?快使用搜索试试~ 我知道了~
onnxruntime-gpu-1.16.0-cp38-cp38-linux-aarch64
共2000个文件
py:1072个
cpp:381个
txt:175个
需积分: 5 1 下载量 48 浏览量
2024-03-11
10:09:30
上传
评论
收藏 407.19MB ZIP 举报
温馨提示
onnxruntine-gpu 整个编译 Build 目录,C++ 可进行 sudo make install 进行安装
资源推荐
资源详情
资源评论
收起资源包目录
onnxruntime-gpu-1.16.0-cp38-cp38-linux-aarch64 (2000个子文件)
CMakeCCompilerId.c 26KB
CMakeCUDACompilerId.fatbin.c 4KB
a_dlink.fatbin.c 3KB
CMakeCUDACompilerId.cudafe1.c 2KB
CMakeCUDACompilerId.cudafe1.stub.c 740B
a_dlink.reg.c 32B
CMakeCUDACompilerId.cudafe1.cpp 626KB
SubVerify.cpp 259KB
AddVerify.cpp 241KB
SubVerify.cpp 234KB
AddVerify.cpp 223KB
SafeInt_3013p.cpp 203KB
tz.cpp 110KB
DivVerify.cpp 97KB
DivVerify.cpp 90KB
MultVerify.cpp 75KB
MultVerify.cpp 62KB
MulTest.cpp 60KB
span_compatibility_tests.cpp 59KB
MulTest.cpp 55KB
span_tests.cpp 33KB
op_div_survey.pass.cpp 32KB
string_span_tests.cpp 31KB
test_pytypes.cpp 30KB
IncDecVerify.cpp 29KB
CMakeCXXCompilerId.cpp 26KB
test_class.cpp 24KB
IncDecVerify.cpp 23KB
test_virtual_functions.cpp 22KB
parse.pass.cpp 21KB
test_stl.cpp 21KB
test_methods_and_attributes.cpp 21KB
test_sequences_and_iterators.cpp 21KB
test_numpy_dtypes.cpp 21KB
zoned_time.pass.cpp 20KB
test_numpy_array.cpp 19KB
ConstExpr.cpp 19KB
test_eigen.cpp 19KB
test_smart_ptr.cpp 18KB
test_factory_constructors.cpp 18KB
notnull_tests.cpp 16KB
test_builtin_casters.cpp 16KB
test_interpreter.cpp 14KB
test_multiple_inheritance.cpp 12KB
test_exceptions.cpp 12KB
op_div_survey.pass.cpp 11KB
test_copy_move.cpp 11KB
span_ext_tests.cpp 10KB
year_month_day.pass.cpp 10KB
noncastable.pass.cpp 9KB
test_kwargs_and_defaults.cpp 9KB
test_operator_overloading.cpp 9KB
mp_erase.cpp 9KB
test_callbacks.cpp 9KB
ModVerify.cpp 9KB
test_buffers.cpp 8KB
mp_rotate_right.cpp 8KB
mp_rotate_left.cpp 8KB
weekday.pass.cpp 8KB
mp_insert.cpp 8KB
mp_rename.cpp 7KB
test_custom_type_casters.cpp 7KB
year_month_day_last.pass.cpp 7KB
year_month_weekday.pass.cpp 7KB
make_time.pass.cpp 7KB
weekday.pass.cpp 7KB
test_pickling.cpp 7KB
mp_repeat.cpp 6KB
year_month_weekday_last.pass.cpp 6KB
year_weeknum_weekday.pass.cpp 6KB
algorithm_tests.cpp 6KB
mp_set_push_front.cpp 6KB
month.pass.cpp 6KB
TestCompile.cpp 6KB
pybind11_cross_module_tests.cpp 6KB
TestCompile.cpp 6KB
TestCompile.cpp 6KB
TestCompile.cpp 6KB
mp_set_push_back.cpp 6KB
ConstExpr_Intrinsics.cpp 6KB
year.pass.cpp 6KB
test_constants_and_functions.cpp 6KB
mp_partial_sum.cpp 6KB
year_month.pass.cpp 6KB
test_enum.cpp 6KB
at_tests.cpp 5KB
tuple_transform.cpp 5KB
decimal_format_seconds.pass.cpp 5KB
year_lastweek_weekday.pass.cpp 5KB
custom_clock.pass.cpp 5KB
mp_apply_q.cpp 5KB
mp_take.cpp 5KB
test_gil_scoped.cpp 5KB
day.pass.cpp 5KB
mp_transform_front.cpp 5KB
construct_from_tuple.cpp 5KB
mp_unique_if.cpp 5KB
strict_notnull_tests.cpp 5KB
time_of_day_nanoseconds.pass.cpp 5KB
time_of_day_milliseconds.pass.cpp 5KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
深夜独影
- 粉丝: 701
- 资源: 121
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功