JSkipValue
- Function
- August 22, 2025
Table of Contents
JSkipValue
JSkipValue
Description
Skip the current JSON value at reading position.
Parameters
Name | Direction | Description |
---|---|---|
si | in | Current position in string iterator to skip value from |
Success
Returns updated StrIter
after value is skipped
Failure
Returns same StrIter
on error (e.g. invalid type)
Usage example (Cross-references)
- In
JSON.h:447
:
if (si_before_read.pos == si.pos) { \
/* skip the value */ \
StrIter read_si = JSkipValue(si); \
\
/* if still no advancement in read position */ \
- In
JSON.h:568
:
if (si_before_read.pos == si.pos) { \
/* skip the value */ \
StrIter read_si = JSkipValue(si); \
\
\
- In
JSON.c:60
:
// skip values within object
read_si = JSkipValue(si);
// if still no advancement in read position
- In
JSON.c:120
:
// skip values within array
read_si = JSkipValue(si);
// if no advancement in read position
- In
JSON.c:544
:
}
StrIter JSkipValue(StrIter si) {
if (!StrIterRemainingLength(&si)) {
return si;