updated as_json