TextJsonX extension

Adds JSON decoding helpers to String.

on

Methods

decode() → dynamic

Available on String, provided by the TextJsonX extension

Decodes this string as JSON, throwing if parsing fails.
tryDecode() Object?

Available on String, provided by the TextJsonX extension

Tries to decode JSON; on failure, returns the original text.