fixed an issue with the API that was not returning the correct JSON format