VirtualBox

Changeset 73956 in vbox for trunk/include/iprt/json.h


Ignore:
Timestamp:
Aug 29, 2018 3:09:34 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/rest: Added RTJsonIteratorBeginArray and RTJsonIteratorBeginObject for more accurate JSON decoding. Early RTCRestArray implementation. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/json.h

    r73930 r73956  
    281281
    282282/**
     283 * Creates an iterator for a given JSON array value.
     284 *
     285 * @returns IPRT status code.
     286 * @retval  VERR_JSON_VALUE_INVALID_TYPE if the JSON value is not an array.
     287 * @param   hJsonVal        The JSON value handle.
     288 * @param   phJsonIt        Where to store the JSON iterator handle on success.
     289 */
     290RTDECL(int) RTJsonIteratorBeginArray(RTJSONVAL hJsonVal, PRTJSONIT phJsonIt);
     291
     292/**
     293 * Creates an iterator for a given JSON object value.
     294 *
     295 * @returns IPRT status code.
     296 * @retval  VERR_JSON_VALUE_INVALID_TYPE if the JSON value is not an object.
     297 * @param   hJsonVal        The JSON value handle.
     298 * @param   phJsonIt        Where to store the JSON iterator handle on success.
     299 */
     300RTDECL(int) RTJsonIteratorBeginObject(RTJSONVAL hJsonVal, PRTJSONIT phJsonIt);
     301
     302/**
    283303 * Gets the value and optional name for the current iterator position.
    284304 *
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette