API / geotoolkit / persistence / JsonSerializer / JsonSerializer
persistence.JsonSerializer.JsonSerializer
The JsonSerializer class exposes the trivial serialization functions from a JavaScript object to JSON and back
Constructors
Methods
Constructors
• new JsonSerializer(registry, options?)
Methods
▸ deserialize(str): MementoDeserializationContext
Deserializes a JSON string to the original object
| Name | Type | Description |
|---|---|---|
str | string | text to be deserialised |
▸ serialize(name, value?, source?): string
Serializes an object to a JSON string
| Name | Type | Description |
|---|---|---|
name | string | the name of the object or the object to mementoize |
Optional value | any | The value to mementoize |
Optional source | any | the source project to add property |
string