Added method to convert upload JSON response to a struct