got the json to be returned as an object, we need to discuss further about what we want to have returned as the object