Esc

from_json

procedureextensionsince 0.36.1Source
  • macOS: from_json works on macOS
  • Linux: from_json works on Linux
  • Windows: from_json works on Windows
  • Wasm: from_json works on Wasm

Decodes a message from its proto3 JSON. A failure releases everything and returns a zero value; the error's message says what was wrong and path where.

Signature

from_json :: (
    $T: Type,
    text: string,
    options := Json_Options.{}
) -> (T, Error)

See also