Incorporate return_json method