set output type to object when parsing json