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
18cc7ddd
Unverified
Commit
18cc7ddd
authored
Mar 19, 2019
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
completed documentation index page
parent
e07e8e79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
index.md
doc/index.md
+22
-2
json.hpp
include/nlohmann/json.hpp
+1
-1
json.hpp
single_include/nlohmann/json.hpp
+1
-1
No files found.
doc/index.md
View file @
18cc7ddd
...
@@ -35,6 +35,12 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
...
@@ -35,6 +35,12 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
-
@link nlohmann::basic_json::out_of_range out_of_range @endlink for exceptions indicating access out of the defined range
-
@link nlohmann::basic_json::out_of_range out_of_range @endlink for exceptions indicating access out of the defined range
-
@link nlohmann::basic_json::other_error other_error @endlink for exceptions indicating other library errors
-
@link nlohmann::basic_json::other_error other_error @endlink for exceptions indicating other library errors
-
lexicographical comparison operators
-
lexicographical comparison operators
-
@link nlohmann::basic_json::operator== operator== @endlink
-
@link nlohmann::basic_json::operator!= operator!= @endlink
-
@link nlohmann::basic_json::operator< operator<= @endlink
-
@link nlohmann::basic_json::operator<= operator< @endlink
-
@link nlohmann::basic_json::operator> operator> @endlink
-
@link nlohmann::basic_json::operator>= operator>= @endlink
-
serialization
-
serialization
-
@link nlohmann::basic_json::dump dump @endlink serialize to string
-
@link nlohmann::basic_json::dump dump @endlink serialize to string
-
@link nlohmann::basic_json::operator<<(std::ostream&, const basic_json &) operator<< @endlink serialize to stream
-
@link nlohmann::basic_json::operator<<(std::ostream&, const basic_json &) operator<< @endlink serialize to stream
...
@@ -44,10 +50,12 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
...
@@ -44,10 +50,12 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
-
@link nlohmann::basic_json::operator>>(std::istream&, basic_json&) operator>> @endlink parse from stream
-
@link nlohmann::basic_json::operator>>(std::istream&, basic_json&) operator>> @endlink parse from stream
-
@link nlohmann::basic_json::accept accept @endlink check for syntax errors without parsing
-
@link nlohmann::basic_json::accept accept @endlink check for syntax errors without parsing
-
@link nlohmann::json_sax SAX interface @endlink define a user-defined SAX event consumer
-
@link nlohmann::json_sax SAX interface @endlink define a user-defined SAX event consumer
-
@link nlohmann::basic_json::parser_callback_t callback interface @endlink register a callback to the parse function
-
[
binary formats
](
binary_formats.md
)
:
-
[
binary formats
](
binary_formats.md
)
:
-
CBOR: @link nlohmann::basic_json::from_cbor from_cbor @endlink / @link nlohmann::basic_json::to_cbor to_cbor @endlink
-
CBOR: @link nlohmann::basic_json::from_cbor from_cbor @endlink / @link nlohmann::basic_json::to_cbor to_cbor @endlink
-
MessagePack: @link nlohmann::basic_json::from_msgpack from_msgpack @endlink / @link nlohmann::basic_json::to_msgpack to_msgpack @endlink
-
MessagePack: @link nlohmann::basic_json::from_msgpack from_msgpack @endlink / @link nlohmann::basic_json::to_msgpack to_msgpack @endlink
-
UBJSON: @link nlohmann::basic_json::from_ubjson from_ubjson @endlink / @link nlohmann::basic_json::to_ubjson to_ubjson @endlink
-
UBJSON: @link nlohmann::basic_json::from_ubjson from_ubjson @endlink / @link nlohmann::basic_json::to_ubjson to_ubjson @endlink
-
BSON: @link nlohmann::basic_json::from_bson from_bson @endlink / @link nlohmann::basic_json::to_bson to_bson @endlink
-
Types
-
Types
-
@link nlohmann::basic_json::array_t arrays @endlink
-
@link nlohmann::basic_json::array_t arrays @endlink
-
@link nlohmann::basic_json::object_t objects @endlink
-
@link nlohmann::basic_json::object_t objects @endlink
...
@@ -57,7 +65,10 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
...
@@ -57,7 +65,10 @@ These pages contain the API documentation of JSON for Modern C++, a C++11 header
-
@link nlohmann::basic_json::number_integer_t signed integers @endlink
-
@link nlohmann::basic_json::number_integer_t signed integers @endlink
-
@link nlohmann::basic_json::number_unsigned_t unsigned integers @endlink
-
@link nlohmann::basic_json::number_unsigned_t unsigned integers @endlink
-
@link nlohmann::basic_json::number_float_t floating-point @endlink
-
@link nlohmann::basic_json::number_float_t floating-point @endlink
-
@link nlohmann::json_pointer JSON Pointer @endlink
-
further JSON standards
-
@link nlohmann::json_pointer JSON Pointer @endlink (REF 6901)
-
@link nlohmann::basic_json::patch JSON Patch @endlink (RFC 6902)
-
@link nlohmann::basic_json::merge_patch JSON Merge Patch @endlink (RFC 7396)
# Container function overview
# Container function overview
...
@@ -282,7 +293,7 @@ Note that this table only lists those exceptions thrown due to the type. For ins
...
@@ -282,7 +293,7 @@ Note that this table only lists those exceptions thrown due to the type. For ins
<td
class=
"ok_green"
>
@link nlohmann::basic_json::swap
`swap`
@endlink
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::swap
`swap`
@endlink
</td>
</tr>
</tr>
<tr>
<tr>
<td
rowspan=
"
2
"
>
lookup
</td>
<td
rowspan=
"
3
"
>
lookup
</td>
<td>
`find`
</td>
<td>
`find`
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::find
`find`
@endlink
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::find
`find`
@endlink
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::find
`find`
@endlink (returns
`end()`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::find
`find`
@endlink (returns
`end()`
)
</td>
...
@@ -300,6 +311,15 @@ Note that this table only lists those exceptions thrown due to the type. For ins
...
@@ -300,6 +311,15 @@ Note that this table only lists those exceptions thrown due to the type. For ins
<td
class=
"ok_green"
>
@link nlohmann::basic_json::count
`count`
@endlink (returns
`0`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::count
`count`
@endlink (returns
`0`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::count
`count`
@endlink (returns
`0`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::count
`count`
@endlink (returns
`0`
)
</td>
</tr>
</tr>
<tr>
<td>
`contains`
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink (returns
`false`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink (returns
`false`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink (returns
`false`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink (returns
`false`
)
</td>
<td
class=
"ok_green"
>
@link nlohmann::basic_json::contains
`contains`
@endlink (returns
`false`
)
</td>
</tr>
</table>
</table>
@copyright Copyright
©
2013-2018 Niels Lohmann. The code is licensed under the
[
MIT License
](
http://opensource.org/licenses/MIT
)
.
@copyright Copyright
©
2013-2018 Niels Lohmann. The code is licensed under the
[
MIT License
](
http://opensource.org/licenses/MIT
)
.
...
...
include/nlohmann/json.hpp
View file @
18cc7ddd
...
@@ -3990,7 +3990,7 @@ class basic_json
...
@@ -3990,7 +3990,7 @@ class basic_json
template
<
typename
KeyT
>
template
<
typename
KeyT
>
bool
contains
(
KeyT
&&
key
)
const
bool
contains
(
KeyT
&&
key
)
const
{
{
return
is_object
()
and
m_value
.
object
->
find
(
std
::
forward
<
KeyT
>
(
key
))
!=
m_value
.
object
->
end
();
return
is_object
()
and
m_value
.
object
->
find
(
std
::
forward
<
KeyT
>
(
key
))
!=
m_value
.
object
->
end
();
}
}
/// @}
/// @}
...
...
single_include/nlohmann/json.hpp
View file @
18cc7ddd
...
@@ -16755,7 +16755,7 @@ class basic_json
...
@@ -16755,7 +16755,7 @@ class basic_json
template
<
typename
KeyT
>
template
<
typename
KeyT
>
bool
contains
(
KeyT
&&
key
)
const
bool
contains
(
KeyT
&&
key
)
const
{
{
return
is_object
()
and
m_value
.
object
->
find
(
std
::
forward
<
KeyT
>
(
key
))
!=
m_value
.
object
->
end
();
return
is_object
()
and
m_value
.
object
->
find
(
std
::
forward
<
KeyT
>
(
key
))
!=
m_value
.
object
->
end
();
}
}
/// @}
/// @}
...
...
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