Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
畅游知识海洋
json
提交
d8708268
J
json
项目概览
畅游知识海洋
/
json
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
json
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d8708268
编写于
1月 28, 2017
作者:
N
Niels Lohmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🔖
set version to 2.1.0
上级
2f626075
变更
46
隐藏空白更改
内联
并排
Showing
46 changed file
with
113 addition
and
49 deletion
+113
-49
CMakeLists.txt
CMakeLists.txt
+1
-1
ChangeLog.md
ChangeLog.md
+37
-0
doc/Doxyfile
doc/Doxyfile
+1
-1
doc/index.md
doc/index.md
+1
-1
src/json.hpp
src/json.hpp
+3
-3
src/json.hpp.re2c
src/json.hpp.re2c
+3
-3
test/src/fuzzer-driver_afl.cpp
test/src/fuzzer-driver_afl.cpp
+1
-1
test/src/fuzzer-parse_cbor.cpp
test/src/fuzzer-parse_cbor.cpp
+1
-1
test/src/fuzzer-parse_json.cpp
test/src/fuzzer-parse_json.cpp
+1
-1
test/src/fuzzer-parse_msgpack.cpp
test/src/fuzzer-parse_msgpack.cpp
+1
-1
test/src/unit-algorithms.cpp
test/src/unit-algorithms.cpp
+1
-1
test/src/unit-allocator.cpp
test/src/unit-allocator.cpp
+1
-1
test/src/unit-capacity.cpp
test/src/unit-capacity.cpp
+1
-1
test/src/unit-cbor.cpp
test/src/unit-cbor.cpp
+1
-1
test/src/unit-class_const_iterator.cpp
test/src/unit-class_const_iterator.cpp
+1
-1
test/src/unit-class_iterator.cpp
test/src/unit-class_iterator.cpp
+1
-1
test/src/unit-class_lexer.cpp
test/src/unit-class_lexer.cpp
+1
-1
test/src/unit-class_parser.cpp
test/src/unit-class_parser.cpp
+1
-1
test/src/unit-comparison.cpp
test/src/unit-comparison.cpp
+1
-1
test/src/unit-concepts.cpp
test/src/unit-concepts.cpp
+1
-1
test/src/unit-constructor1.cpp
test/src/unit-constructor1.cpp
+1
-1
test/src/unit-constructor2.cpp
test/src/unit-constructor2.cpp
+1
-1
test/src/unit-convenience.cpp
test/src/unit-convenience.cpp
+1
-1
test/src/unit-conversions.cpp
test/src/unit-conversions.cpp
+1
-1
test/src/unit-deserialization.cpp
test/src/unit-deserialization.cpp
+1
-1
test/src/unit-element_access1.cpp
test/src/unit-element_access1.cpp
+1
-1
test/src/unit-element_access2.cpp
test/src/unit-element_access2.cpp
+1
-1
test/src/unit-inspection.cpp
test/src/unit-inspection.cpp
+1
-1
test/src/unit-iterator_wrapper.cpp
test/src/unit-iterator_wrapper.cpp
+1
-1
test/src/unit-iterators1.cpp
test/src/unit-iterators1.cpp
+1
-1
test/src/unit-iterators2.cpp
test/src/unit-iterators2.cpp
+1
-1
test/src/unit-json_patch.cpp
test/src/unit-json_patch.cpp
+1
-1
test/src/unit-json_pointer.cpp
test/src/unit-json_pointer.cpp
+1
-1
test/src/unit-meta.cpp
test/src/unit-meta.cpp
+1
-1
test/src/unit-modifiers.cpp
test/src/unit-modifiers.cpp
+1
-1
test/src/unit-msgpack.cpp
test/src/unit-msgpack.cpp
+1
-1
test/src/unit-noexcept.cpp
test/src/unit-noexcept.cpp
+28
-1
test/src/unit-pointer_access.cpp
test/src/unit-pointer_access.cpp
+1
-1
test/src/unit-readme.cpp
test/src/unit-readme.cpp
+1
-1
test/src/unit-reference_access.cpp
test/src/unit-reference_access.cpp
+1
-1
test/src/unit-regression.cpp
test/src/unit-regression.cpp
+1
-1
test/src/unit-serialization.cpp
test/src/unit-serialization.cpp
+1
-1
test/src/unit-testsuites.cpp
test/src/unit-testsuites.cpp
+1
-1
test/src/unit-udt.cpp
test/src/unit-udt.cpp
+1
-1
test/src/unit-unicode.cpp
test/src/unit-unicode.cpp
+1
-1
test/src/unit.cpp
test/src/unit.cpp
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
d8708268
cmake_minimum_required
(
VERSION 3.0
)
cmake_minimum_required
(
VERSION 3.0
)
# define the project
# define the project
project
(
nlohmann_json VERSION 2.
0.1
0 LANGUAGES CXX
)
project
(
nlohmann_json VERSION 2.
1.
0 LANGUAGES CXX
)
enable_testing
()
enable_testing
()
...
...
ChangeLog.md
浏览文件 @
d8708268
# Change Log
# Change Log
All notable changes to this project will be documented in this file. This project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
All notable changes to this project will be documented in this file. This project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## [v2.1.0](https://github.com/nlohmann/json/releases/tag/v2.1.0) (2017-01-28)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.10...v2.1.0
)
-
Parsing multiple JSON objects from a string or stream
[
\#438
](
https://github.com/nlohmann/json/issues/438
)
-
Use-of-uninitialized-value
\(
OSS-Fuzz issue 477
\)
[
\#437
](
https://github.com/nlohmann/json/issues/437
)
-
add
`reserve`
function for array to reserve memory before adding json values into it
[
\#436
](
https://github.com/nlohmann/json/issues/436
)
-
Typo in examples page
[
\#434
](
https://github.com/nlohmann/json/issues/434
)
-
avoid malformed json
[
\#433
](
https://github.com/nlohmann/json/issues/433
)
-
How to add json objects to a map?
[
\#432
](
https://github.com/nlohmann/json/issues/432
)
-
create json instance from raw json
\(
unsigned char
\*\)
[
\#431
](
https://github.com/nlohmann/json/issues/431
)
-
Getting std::invalid
\_
argument: stream error when following example
[
\#429
](
https://github.com/nlohmann/json/issues/429
)
-
Forward declare-only header?
[
\#427
](
https://github.com/nlohmann/json/issues/427
)
-
Implicit conversion from array to object
[
\#425
](
https://github.com/nlohmann/json/issues/425
)
-
Automatic ordered JSON
[
\#424
](
https://github.com/nlohmann/json/issues/424
)
-
error C4996: 'strerror' when reading file
[
\#422
](
https://github.com/nlohmann/json/issues/422
)
-
Get an error - JSON pointer must be empty or begin with '/'
[
\#421
](
https://github.com/nlohmann/json/issues/421
)
-
size parameter for parse
\(\)
[
\#419
](
https://github.com/nlohmann/json/issues/419
)
-
json.hpp forcibly defines GCC
\_
VERSION
[
\#417
](
https://github.com/nlohmann/json/issues/417
)
-
Use-of-uninitialized-value
\(
OSS-Fuzz issue 377
\)
[
\#416
](
https://github.com/nlohmann/json/issues/416
)
-
Single char converted to ASCII code instead of string
[
\#413
](
https://github.com/nlohmann/json/issues/413
)
-
How to know if a string was parsed as utf-8?
[
\#406
](
https://github.com/nlohmann/json/issues/406
)
-
Overloaded += to add objects to an array makes no sense?
[
\#404
](
https://github.com/nlohmann/json/issues/404
)
-
Finding a value in an array
[
\#399
](
https://github.com/nlohmann/json/issues/399
)
-
add release information in static function
[
\#397
](
https://github.com/nlohmann/json/issues/397
)
-
Optimize memory usage of json objects in combination with binary serialization
[
\#373
](
https://github.com/nlohmann/json/issues/373
)
-
Conversion operators not considered
[
\#369
](
https://github.com/nlohmann/json/issues/369
)
-
Append ".0" to serialized floating
\_
point values that are digits-only.
[
\#362
](
https://github.com/nlohmann/json/issues/362
)
-
Add a customization point for user-defined types
[
\#328
](
https://github.com/nlohmann/json/issues/328
)
-
Conformance report for reference
[
\#307
](
https://github.com/nlohmann/json/issues/307
)
-
Document the best way to serialize/deserialize user defined types to json
[
\#298
](
https://github.com/nlohmann/json/issues/298
)
-
Add StringView template typename to basic
\_
json
[
\#297
](
https://github.com/nlohmann/json/issues/297
)
-
\[
Improvement
\]
Add option to remove exceptions
[
\#296
](
https://github.com/nlohmann/json/issues/296
)
-
Performance in miloyip/nativejson-benchmark
[
\#202
](
https://github.com/nlohmann/json/issues/202
)
-
conversion from/to user-defined types
[
\#435
](
https://github.com/nlohmann/json/pull/435
)
(
[nlohmann](https://github.com/nlohmann
)
)
-
Fix documentation error
[
\#430
](
https://github.com/nlohmann/json/pull/430
)
(
[vjon](https://github.com/vjon
)
)
## [v2.0.10](https://github.com/nlohmann/json/releases/tag/v2.0.10) (2017-01-02)
## [v2.0.10](https://github.com/nlohmann/json/releases/tag/v2.0.10) (2017-01-02)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.9...v2.0.10
)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.9...v2.0.10
)
...
...
doc/Doxyfile
浏览文件 @
d8708268
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "JSON for Modern C++"
PROJECT_NAME = "JSON for Modern C++"
PROJECT_NUMBER = 2.
0.1
0
PROJECT_NUMBER = 2.
1.
0
PROJECT_BRIEF =
PROJECT_BRIEF =
PROJECT_LOGO =
PROJECT_LOGO =
OUTPUT_DIRECTORY = .
OUTPUT_DIRECTORY = .
...
...
doc/index.md
浏览文件 @
d8708268
...
@@ -277,4 +277,4 @@ The container functions known from STL have been extended to support the differe
...
@@ -277,4 +277,4 @@ The container functions known from STL have been extended to support the differe
@author
[
Niels Lohmann
](
http://nlohmann.me
)
@author
[
Niels Lohmann
](
http://nlohmann.me
)
@see https://github.com/nlohmann/json to download the source code
@see https://github.com/nlohmann/json to download the source code
@version 2.
0.1
0
@version 2.
1.
0
src/json.hpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
@@ -1115,7 +1115,7 @@ class basic_json
...
@@ -1115,7 +1115,7 @@ class basic_json
result
[
"url"
]
=
"https://github.com/nlohmann/json"
;
result
[
"url"
]
=
"https://github.com/nlohmann/json"
;
result
[
"version"
]
=
result
[
"version"
]
=
{
{
{
"string"
,
"2.
0.1
0"
},
{
"string"
,
"2.
1.
0"
},
{
"major"
,
2
},
{
"major"
,
2
},
{
"minor"
,
0
},
{
"minor"
,
0
},
{
"patch"
,
10
},
{
"patch"
,
10
},
...
@@ -1726,7 +1726,7 @@ class basic_json
...
@@ -1726,7 +1726,7 @@ class basic_json
{
{
if
(
t
==
value_t
::
null
)
if
(
t
==
value_t
::
null
)
{
{
JSON_THROW
(
std
::
domain_error
(
"961c151d2e87f2686a955a9be24d316f1362bf21 2.
0.1
0"
));
// LCOV_EXCL_LINE
JSON_THROW
(
std
::
domain_error
(
"961c151d2e87f2686a955a9be24d316f1362bf21 2.
1.
0"
));
// LCOV_EXCL_LINE
}
}
break
;
break
;
}
}
...
...
src/json.hpp.re2c
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
@@ -1115,7 +1115,7 @@ class basic_json
...
@@ -1115,7 +1115,7 @@ class basic_json
result["url"] = "https://github.com/nlohmann/json";
result["url"] = "https://github.com/nlohmann/json";
result["version"] =
result["version"] =
{
{
{"string", "2.
0.1
0"},
{"string", "2.
1.
0"},
{"major", 2},
{"major", 2},
{"minor", 0},
{"minor", 0},
{"patch", 10},
{"patch", 10},
...
@@ -1726,7 +1726,7 @@ class basic_json
...
@@ -1726,7 +1726,7 @@ class basic_json
{
{
if (t == value_t::null)
if (t == value_t::null)
{
{
JSON_THROW(std::domain_error("961c151d2e87f2686a955a9be24d316f1362bf21 2.
0.1
0")); // LCOV_EXCL_LINE
JSON_THROW(std::domain_error("961c151d2e87f2686a955a9be24d316f1362bf21 2.
1.
0")); // LCOV_EXCL_LINE
}
}
break;
break;
}
}
...
...
test/src/fuzzer-driver_afl.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a driver for American Fuzzy Lop (afl-fuzz). It relies on
This file implements a driver for American Fuzzy Lop (afl-fuzz). It relies on
...
...
test/src/fuzzer-parse_cbor.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a parser test suitable for fuzz testing. Given a byte
This file implements a parser test suitable for fuzz testing. Given a byte
...
...
test/src/fuzzer-parse_json.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a parser test suitable for fuzz testing. Given a byte
This file implements a parser test suitable for fuzz testing. Given a byte
...
...
test/src/fuzzer-parse_msgpack.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a parser test suitable for fuzz testing. Given a byte
This file implements a parser test suitable for fuzz testing. Given a byte
...
...
test/src/unit-algorithms.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-allocator.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-capacity.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-cbor.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_const_iterator.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_iterator.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_lexer.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_parser.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-comparison.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-concepts.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-constructor1.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-constructor2.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-convenience.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-conversions.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-deserialization.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-element_access1.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-element_access2.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-inspection.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterator_wrapper.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterators1.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterators2.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-json_patch.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-json_pointer.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-meta.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-modifiers.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-msgpack.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-noexcept.cpp
浏览文件 @
d8708268
#include "catch.hpp"
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.1.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Copyright (c) 2013-2017 Niels Lohmann <http://nlohmann.me>.
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.
*/
#include "catch.hpp"
#include "json.hpp"
#include "json.hpp"
using
nlohmann
::
json
;
using
nlohmann
::
json
;
...
...
test/src/unit-pointer_access.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-readme.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-reference_access.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-regression.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-serialization.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-testsuites.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-udt.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.7
| | |__ | | | | | | version 2.
1.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-unicode.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit.cpp
浏览文件 @
d8708268
/*
/*
__ _____ _____ _____
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.
0.1
0
| | |__ | | | | | | version 2.
1.
0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录