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
f5b3fb32
Unverified
Commit
f5b3fb32
authored
4 years ago
by
Cristi Vîjdea
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in operator[] documentation (#3102)
* Fix typos in operator[] documentation * Fix additional typo
parent
67c8ead9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/mkdocs/docs/api/basic_json/operator[].md
doc/mkdocs/docs/api/basic_json/operator[].md
+4
-4
No files found.
doc/mkdocs/docs/api/basic_json/operator[].md
View file @
f5b3fb32
...
...
@@ -33,7 +33,7 @@ const_reference operator[](const json_pointer& ptr) const;
: index of the element to access
`key`
(in)
: object key of the element
s to remove
: object key of the element
to access
`ptr`
(in)
: JSON pointer to the desired element
...
...
@@ -48,10 +48,10 @@ const_reference operator[](const json_pointer& ptr) const;
1.
The function can throw the following exceptions:
-
Throws
[
`type_error.305`
](
../../home/exceptions.md#jsonexceptiontype_error305
)
if the JSON value is not an array
or null; in that case
s
, using the
`[]`
operator with an index makes no sense.
or null; in that case, using the
`[]`
operator with an index makes no sense.
2.
The function can throw the following exceptions:
-
Throws
[
`type_error.305`
](
../../home/exceptions.md#jsonexceptiontype_error305
)
if the JSON value is not an
array
or null; in that case
s, using the
`[]`
operator with an index
makes no sense.
-
Throws
[
`type_error.305`
](
../../home/exceptions.md#jsonexceptiontype_error305
)
if the JSON value is not an
object
or null; in that case
, using the
`[]`
operator with a key
makes no sense.
3.
The function can throw the following exceptions:
-
Throws
[
`parse_error.106`
](
../../home/exceptions.md#jsonexceptionparse_error106
)
if an array index in the passed
JSON pointer
`ptr`
begins with '0'.
...
...
This diff is collapsed.
Click to expand it.
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