This library defines a type class and instances for standard types to convert Curry values to JSON values and vice versa.
class ConvertJSON
a
The type class ConvertJSON
defines conversion operations
between values and their JSON representation.
Since a JSON value might not contain a correct representation
of a standard value, the operation fromJSON
returns a Maybe
value.
The additional operations on value lists are used for a better
JSON conversion of strings.
Methods:
|
Convert a value into its JSON representation. |
|
Convert a JSON representation into its corresponding value. |
|
Convert a list of values into its JSON rerpresentation. As a default, a JSON array is used to represent the list of values. |
|
Convert a JSON representation into the corresponding list of values. |