Skip to main content

Module api

Module api 

Source
Expand description

The public entry points: prefix parsing, strict whole-input parsing, and the leftover reporting that separates them.

Functions§

parse_object_literal
Parse a { key: value, ... } object literal at the START of s.
parse_object_literal_array
Parse [{ ... }, { ... }] — an array of object literals for batch insert.
parse_object_literal_array_complete
Parse an array of object literals that must be the WHOLE input.
parse_object_literal_complete
Parse a { key: value, ... } object literal that must be the WHOLE input.