Changed API format to JSON