Rename to_json as serialized to support other output types