Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
542a48a1
Commit
542a48a1
authored
Oct 15, 2016
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/2.0.6' into develop
parents
67b9f193
606098f4
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
59 additions
and
50 deletions
+59
-50
CMakeLists.txt
CMakeLists.txt
+1
-1
ChangeLog.md
ChangeLog.md
+13
-2
README.md
README.md
+1
-1
Doxyfile
doc/Doxyfile
+1
-1
README.link
doc/examples/README.link
+2
-2
basic_json__CompatibleArrayType.link
doc/examples/basic_json__CompatibleArrayType.link
+2
-2
operatorjson_pointer.link
doc/examples/operatorjson_pointer.link
+2
-2
index.md
doc/index.md
+1
-1
json.gif
doc/json.gif
+0
-0
json.hpp
src/json.hpp
+1
-2
json.hpp.re2c
src/json.hpp.re2c
+1
-2
fuzz.cpp
test/src/fuzz.cpp
+1
-1
unit-algorithms.cpp
test/src/unit-algorithms.cpp
+1
-1
unit-allocator.cpp
test/src/unit-allocator.cpp
+1
-1
unit-capacity.cpp
test/src/unit-capacity.cpp
+1
-1
unit-class_const_iterator.cpp
test/src/unit-class_const_iterator.cpp
+1
-1
unit-class_iterator.cpp
test/src/unit-class_iterator.cpp
+1
-1
unit-class_lexer.cpp
test/src/unit-class_lexer.cpp
+1
-1
unit-class_parser.cpp
test/src/unit-class_parser.cpp
+1
-1
unit-comparison.cpp
test/src/unit-comparison.cpp
+1
-1
unit-concepts.cpp
test/src/unit-concepts.cpp
+1
-1
unit-constructor1.cpp
test/src/unit-constructor1.cpp
+1
-1
unit-constructor2.cpp
test/src/unit-constructor2.cpp
+1
-1
unit-convenience.cpp
test/src/unit-convenience.cpp
+1
-1
unit-conversions.cpp
test/src/unit-conversions.cpp
+1
-1
unit-deserialization.cpp
test/src/unit-deserialization.cpp
+1
-1
unit-element_access1.cpp
test/src/unit-element_access1.cpp
+1
-1
unit-element_access2.cpp
test/src/unit-element_access2.cpp
+1
-1
unit-inspection.cpp
test/src/unit-inspection.cpp
+1
-1
unit-iterator_wrapper.cpp
test/src/unit-iterator_wrapper.cpp
+1
-1
unit-iterators1.cpp
test/src/unit-iterators1.cpp
+1
-1
unit-iterators2.cpp
test/src/unit-iterators2.cpp
+1
-1
unit-json_patch.cpp
test/src/unit-json_patch.cpp
+1
-1
unit-json_pointer.cpp
test/src/unit-json_pointer.cpp
+1
-1
unit-modifiers.cpp
test/src/unit-modifiers.cpp
+1
-1
unit-pointer_access.cpp
test/src/unit-pointer_access.cpp
+1
-1
unit-readme.cpp
test/src/unit-readme.cpp
+1
-1
unit-reference_access.cpp
test/src/unit-reference_access.cpp
+1
-1
unit-regression.cpp
test/src/unit-regression.cpp
+3
-3
unit-serialization.cpp
test/src/unit-serialization.cpp
+1
-1
unit-testsuites.cpp
test/src/unit-testsuites.cpp
+1
-1
unit-unicode.cpp
test/src/unit-unicode.cpp
+1
-1
unit.cpp
test/src/unit.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
542a48a1
cmake_minimum_required
(
VERSION 3.0
)
# define the project
project
(
nlohmann_json VERSION 2.0.
5
LANGUAGES CXX
)
project
(
nlohmann_json VERSION 2.0.
6
LANGUAGES CXX
)
enable_testing
()
...
...
ChangeLog.md
View file @
542a48a1
# Change Log
All notable changes to this project will be documented in this file. This project adheres to
[
Semantic Versioning
](
http://semver.org/
)
.
## [v2.0.6](https://github.com/nlohmann/json/releases/tag/v2.0.6) (2016-10-15)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.5...v2.0.6
)
-
Add nested object capability to pointers
[
\#323
](
https://github.com/nlohmann/json/issues/323
)
-
make has
\_
mapped
\_
type struct friendly
[
\#324
](
https://github.com/nlohmann/json/pull/324
)
(
[vpetrigo](https://github.com/vpetrigo
)
)
-
Fix usage examples' comments for std::multiset
[
\#322
](
https://github.com/nlohmann/json/issues/322
)
-
json
\_
unit runs forever when executed in build directory
[
\#319
](
https://github.com/nlohmann/json/issues/319
)
-
Fix usage examples' comments for std::multiset
[
\#321
](
https://github.com/nlohmann/json/pull/321
)
(
[vasild](https://github.com/vasild
)
)
-
Include dir relocation
[
\#318
](
https://github.com/nlohmann/json/pull/318
)
(
[ChristophJud](https://github.com/ChristophJud
)
)
-
trivial documentation fix
[
\#313
](
https://github.com/nlohmann/json/pull/313
)
(
[5tefan](https://github.com/5tefan
)
)
## [v2.0.5](https://github.com/nlohmann/json/releases/tag/v2.0.5) (2016-09-14)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.4...v2.0.5
)
-
make json
\_
benchmarks no longer working in 2.0.4
[
\#310
](
https://github.com/nlohmann/json/issues/310
)
-
\[
feature request
\]
: schema validator and comments
[
\#311
](
https://github.com/nlohmann/json/issues/311
)
## [v2.0.4](https://github.com/nlohmann/json/releases/tag/v2.0.4) (2016-09-11)
[
Full Changelog
](
https://github.com/nlohmann/json/compare/v2.0.3...v2.0.4
)
...
...
README.md
View file @
542a48a1
...
...
@@ -3,7 +3,7 @@
[

](https://travis-ci.org/nlohmann/json)
[

](https://ci.appveyor.com/project/nlohmann/json)
[

](https://coveralls.io/r/nlohmann/json)
[

](http://melpon.org/wandbox/permlink/
r3wa3rI5yxgQQcrm
)
[

](http://melpon.org/wandbox/permlink/
3BIhBw91FUVuHE1D
)
[

](http://nlohmann.github.io/json)
[

](https://raw.githubusercontent.com/nlohmann/json/master/LICENSE.MIT)
[

](https://github.com/nlohmann/json/releases)
...
...
doc/Doxyfile
View file @
542a48a1
...
...
@@ -5,7 +5,7 @@
#---------------------------------------------------------------------------
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = "JSON for Modern C++"
PROJECT_NUMBER = 2.0.
5
PROJECT_NUMBER = 2.0.
6
PROJECT_BRIEF =
PROJECT_LOGO =
OUTPUT_DIRECTORY = .
...
...
doc/examples/README.link
View file @
542a48a1
<a target="_blank" href="http://melpon.org/wandbox/permlink/r3wa3rI5yxgQQcrm"><b>online</b></a>
\ No newline at end of file
<a target="_blank" href="http://melpon.org/wandbox/permlink/wvAQItW0g01kx5YJ"><b>online</b></a>
\ No newline at end of file
doc/examples/basic_json__CompatibleArrayType.link
View file @
542a48a1
<a target="_blank" href="http://melpon.org/wandbox/permlink/MghSilgvyh4ZJShY"><b>online</b></a>
\ No newline at end of file
<a target="_blank" href="http://melpon.org/wandbox/permlink/3BIhBw91FUVuHE1D"><b>online</b></a>
\ No newline at end of file
doc/examples/operatorjson_pointer.link
View file @
542a48a1
<a target="_blank" href="http://melpon.org/wandbox/permlink/xzFX3E4gYBXFwd04"><b>online</b></a>
\ No newline at end of file
<a target="_blank" href="http://melpon.org/wandbox/permlink/AYgVTzCodPApT4hT"><b>online</b></a>
\ No newline at end of file
doc/index.md
View file @
542a48a1
...
...
@@ -268,4 +268,4 @@ The container functions known from STL have been extended to support the differe
@author
[
Niels Lohmann
](
http://nlohmann.me
)
@see https://github.com/nlohmann/json to download the source code
@version 2.0.
5
@version 2.0.
6
doc/json.gif
View replaced file @
67b9f193
View file @
542a48a1
440 KB
|
W:
|
H:
439 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/json.hpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
@@ -9494,7 +9494,6 @@ basic_json_parser_63:
case
value_t
:
:
array
:
{
// error condition (cf. RFC 6901, Sect. 4)
if
(
reference_token
.
size
()
>
1
and
reference_token
[
0
]
==
'0'
)
{
...
...
src/json.hpp.re2c
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
@@ -8791,7 +8791,6 @@ class basic_json
case value_t::array:
{
// error condition (cf. RFC 6901, Sect. 4)
if (reference_token.size() > 1 and reference_token[0] == '0')
{
...
...
test/src/fuzz.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Run "make fuzz_testing" and follow the instructions.
...
...
test/src/unit-algorithms.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-allocator.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-capacity.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_const_iterator.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_iterator.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_lexer.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-class_parser.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-comparison.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-concepts.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-constructor1.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-constructor2.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-convenience.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-conversions.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-deserialization.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-element_access1.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-element_access2.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-inspection.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterator_wrapper.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterators1.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-iterators2.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-json_patch.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-json_pointer.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-modifiers.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-pointer_access.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-readme.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-reference_access.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-regression.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
@@ -486,7 +486,7 @@ TEST_CASE("regression tests")
SECTION
(
"issue #323 - add nested object capabilities to pointers"
)
{
json
j
;
j
[
"/this/that"
_json_pointer
]
=
27
;
CHECK
(
j
==
json
({{
"this"
,
{{
"that"
,
27
}}}}));
j
[
"/this/that
/2
"
_json_pointer
]
=
27
;
CHECK
(
j
==
json
({{
"this"
,
{{
"that"
,
{
nullptr
,
nullptr
,
27
}
}}}}));
}
}
test/src/unit-serialization.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-testsuites.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit-unicode.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
test/src/unit.cpp
View file @
542a48a1
/*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.0.
5
| | |__ | | | | | | version 2.0.
6
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment