changed the JSON format for iOS