Called when done persisting.
Loads the json.
For a given resourceId this will return the resource.
This can be called multiple times.
Optional
Called once per resource in place of serializing it, to write it elsewhere. Returns [] when the writer records nothing for any of them.
[]
For a resource this will return a number that can be used to reference the resource in the persisted json.
Called when done persisting.