FUNCTION

gtv.from_json

purestatic function from_json(json: text): gtv

Obtain a GTV from JSON text.

First parses a JSON value from text, and then converts the JSON value to a GTV.

Equivalent to gtv.from_json(json(text)).

Parameters

  • json — the JSON text to decode

Throws

  • exception — when: - the JSON text is ill-formed - the JSON value cannot be converted to a GTV

Since

0.9.0


purestatic function from_json(json: json): gtv

Convert a JSON value to a GTV.

Inverse of gtv.to_json().

Parameters

  • json — the JSON to convert

Throws

  • exception — if the JSON value cannot be converted to a GTV

Since

0.9.0

© 2026 Chromia