__jsonDecodePythonOpen (Function)

Signature: __jsonDecodePythonOpen(text: string) -> Result<int, Error>

Description: Internal primitive of jsonDecodePython: Python last-wins keys, non-finite numbers, and escaped NUL. Native integer and nesting limits apply.

Parameters

  • text (string): The JSON text to decode

Returns: Result<int, Error>

Example

fn encode(value) = match jsonEncode(value) {
    Success { value } => value
    Error { message } => message
}
match jsonDecode("[1]") {
    Success { value } => print(encode(value))
    Error { message } => print(message)
}