Argumenty
string
wymagane
JSON string do validate. Function czyta ten argument przez string type checking.
DecodeOptions
Optional decode options. boolean ustawia useNull. table moze ustawic useNull i maxDepth. maxDepth jest clamp od 1 do 4096.
Zwroty
boolean
true, gdy parsing jednej complete JSON value sie powiedzie. false, gdy parsing zawiedzie w protected parse block.
string | nil
Error message przy parse failure. Message ma prefix json.validate i zawiera near-position suffix. Ten return wystepuje tylko przy failure.
number | nil
Parser byte position z parser przy parse failure. Ten return wystepuje tylko przy failure.