Fix resource JSON format and its view