options |
object
|
<optional>
|
{}
|
Properties
| Name |
Type |
Argument |
Default |
Description |
max_depth |
number
|
<optional>
|
-1
|
the maximum depth to parse. Use -1 for
"until you run out of memory". Set this to a finite positive number for
un-trusted inputs. Most standard inputs won't nest more than
100 or so levels; I've tested into the millions before running out of
memory. |
tags |
object
|
<optional>
|
|
mapping from tag number to function(v),
where v is the decoded value that comes after the tag, and where the
function returns the correctly-created value for that tag. |
|