json_consume_space
host callCapy
function json_consume_space(source : string, index : s64) s64
Description
json_consume_space() skips JSON whitespace from index. Use json_decode() for normal JSON parsing.
Parameters
source : JSON source text
index : byte offset where the scan starts
Return Values
The byte offset after JSON whitespace.
Example
Capy
print(json_consume_space(" \t\nvalue", 0), "\n")