Properly decode the INPUT response JSON into Go structs