JSkipValue

Table of Contents

JSkipValue

Description

Skip the current JSON value at reading position.

Parameters

NameDirectionDescription
siinCurrent 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)

    
    // skip values within object
    read_si = JSkipValue(si);
    
    // if still no advancement in read position
    
    // skip values within array
    read_si = JSkipValue(si);
    
    // if no advancement in read position
    }
    
    StrIter JSkipValue(StrIter si) {
    if (!StrIterRemainingLength(&si)) {
    return si;
    if (si_before_read.pos == si.pos) {                                                                        \
    /* skip the value */                                                                                   \
    StrIter read_si = JSkipValue(si);                                                                      \
    \
    /* if still no advancement in read position */                                                         \
    if (si_before_read.pos == si.pos) {                                                                        \
    /* skip the value */                                                                                   \
    StrIter read_si = JSkipValue(si);                                                                      \
    \
    \

Share :

Related Posts

StrReadFmt

StrReadFmt Description Parse input string according to format string with rust-style placeholders, extracting values into provided arguments. This is a macro wrapper around StrReadFmtInternal.

Read More

ITER_DATA_TYPE

ITER_DATA_TYPE Description Get data type of Iter elements

Read More

JSkipWhitespace

JSkipWhitespace Description Skip whitespace from current reading position.

Read More