Add example for serializing JSON, fix README