Skip to content

Could you please add a flag to close the conversion of unicode fields in a json #23

@markqiu

Description

@markqiu

Describe

given a json with unicode field names, maybe we can add a flag to disable the auto conversion to english field names.

Reproduce (Optional)

Package version: ...

JSON data:

{
    "_id" : "5b45bd7bfdc0754510853734",
    "名称" : "MaVol_screen",
    "路径" : "https://gitlab.com/jinniu-stra/strawman/tree/master/src/screen/MaVol_screen",
    "标识符" : "02180706mav001",
    "备注" : "",
    "雷达图" : {
        "盈利" : "4.83",
        "抗风险" : "4.28",
        "稳定" : "4.83",
        "择股" : "5.0"
    },
    "原理说明" : "对均线和成交量进行评估选股。",
    "中文名称" : "一阳穿多均",
    "套装配置" : "",
    "入选理由" : "该股近期在60日均线之上,当前同时上穿5、10、20和30日均线,成交量是前一日的2倍,短期强势",
    "策略话术" : "",
    "策略优势" : "",
    "状态" : "稳定在线",
    "装备详情" : "http://bbs.jinniuai.com/t/topic/69",
    "截止时间" : "2019-06-11 00:00:00"
}

(or link to pastebin)

Desired result

A clear and concise description of what you want to happen.
Class code:

class 雷达图:
    盈利: FloatString
    抗风险: FloatString
    稳定: FloatString
    择股: FloatString

Because python supports unicode variable name already.
Thanks!

Metadata

Metadata

Assignees

Labels

CLICommand line agruments and related codeenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions