Function tvm::ffi::json::Parse#
Defined in File json.h
Function Documentation#
-
json::Value tvm::ffi::json::Parse(const String &json_str, String *error_msg = nullptr)#
Parse a JSON string into an Any value.
Besides the standard JSON syntax, this function also supports:
Infinity/NaN as JavaScript syntax
int64 integer value
If error_msg is not nullptr, the error message will be written to it and no exception will be thrown when parsing fails.
- Parameters:
json_str – The JSON string to parse.
error_msg – The output error message, can be nullptr.
- Returns:
The parsed Any value.