By default, TiddlyWeb provides the following formats:
The job of a serializer is twofold:
- Take an object representing a TiddlyWeb resource and turn it into a string of some form (e.g. JSON).
- Take a string of some form and use that string to fill in an object representing a TiddlyWeb resource.
In web requests a serializer is used to turn an object or collection of objects to a string when there is a
GET request and a string to an object when there is a
PUT request. The
GET asks the server for a representation of a resource. The
PUT request sends a representation to replace an existing resource. Note that replace is the correct word here, not update.