Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
980795b6
Unverified
Commit
980795b6
authored
Dec 16, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✏
fixed typos
parent
f3bd755c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/json.hpp
src/json.hpp
+3
-3
No files found.
src/json.hpp
View file @
980795b6
...
@@ -9051,7 +9051,7 @@ class basic_json
...
@@ -9051,7 +9051,7 @@ class basic_json
@see https://docs.python.org/2/library/json.html#json.dump
@see https://docs.python.org/2/library/json.html#json.dump
@since version 1.0.0; indentation character @a indent_char
and
option
@since version 1.0.0; indentation character @a indent_char
,
option
@a ensure_ascii and exceptions added in version 3.0.0
@a ensure_ascii and exceptions added in version 3.0.0
*/
*/
string_t
dump
(
const
int
indent
=
-
1
,
const
char
indent_char
=
' '
,
string_t
dump
(
const
int
indent
=
-
1
,
const
char
indent_char
=
' '
,
...
@@ -12846,7 +12846,7 @@ class basic_json
...
@@ -12846,7 +12846,7 @@ class basic_json
`std::setw(4)` on @a o sets the indentation level to `4` and the
`std::setw(4)` on @a o sets the indentation level to `4` and the
serialization result is the same as calling `dump(4)`.
serialization result is the same as calling `dump(4)`.
- The indentation charac
r
er can be controlled with the member variable
- The indentation charac
t
er can be controlled with the member variable
`fill` of the output stream @a o. For instance, the manipulator
`fill` of the output stream @a o. For instance, the manipulator
`std::setfill('\\t')` sets indentation to use a tab character rather than
`std::setfill('\\t')` sets indentation to use a tab character rather than
the default space character.
the default space character.
...
@@ -12864,7 +12864,7 @@ class basic_json
...
@@ -12864,7 +12864,7 @@ class basic_json
@liveexample{The example below shows the serialization with different
@liveexample{The example below shows the serialization with different
parameters to `width` to adjust the indentation level.,operator_serialize}
parameters to `width` to adjust the indentation level.,operator_serialize}
@since version 1.0.0; indenta
c
tion character added in version 3.0.0
@since version 1.0.0; indentation character added in version 3.0.0
*/
*/
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
o
,
const
basic_json
&
j
)
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
o
,
const
basic_json
&
j
)
{
{
...
...
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