stores object as json, adds proper nesting of request params