Value Type πΈ
πΈ represents a JSON parser. Its use is straightforward: It can either be used with the shortcut type method βͺοΈ that takes a string and returns the parsed value, or you can instantiate it yourself and then call the method βͺοΈ yourself.
On error, π§πΈπΈ is raised.
Initializers
πβΆοΈπ
π πβΆοΈπ data π
Creates a πΈ from the provided π. The JSON text must be UTF-8 encoded.
Methods
βͺβοΈ
π βοΈ βͺ β‘οΈ βͺοΈΒ π§π§πΈπΈ
Parses the instanceβs input and returns the represented value.
Type Methods
βͺ
π πβοΈ βͺ string π‘ β‘οΈ βͺοΈΒ π§π§πΈπΈ
Parses string
and returns the represented value.