hejianqiang

Results 3 comments of hejianqiang

I test this repos. https://github.com/wayhome/thrift_json/tree/master/thrift_json it seems ok, to convert obj with map to json.

elif ttype == TType.MAP: (key_ttype, key_ttype_info, val_ttype, val_ttype_info) = ttype_info ret = dict([(self._convert(k, key_ttype, key_ttype_info), self._convert(v, val_ttype, val_ttype_info)) for (k, v) in val.items()])

# how about change this func? return a dict ``` def map_to_json(val, spec): res = dict() if isinstance(spec[0], int): key_type = spec[0] key_spec = None else: key_type, key_spec = spec[0]...