bitst0rm-pub / Formatter

🧜‍♀️ A Sublime Text plugin to beautify and minify source code: CSS, SCSS, Sass, HTML, XML, SVG,JS,JavaScript, JSON, GraphQL, Markdown, TypeScript, Vue, Lua, YAML, Go, Perl, PHP, Python, Ruby, Rust, Haskell, Dart, Swift, Crystal, Bash, Shell, SQL, CSV, C, C++, C#, Objective-C, D, Java, Pawn, Julia, Proto, LaTeX, D2, Graphviz, Mermaid, PlantUML, etc
Other
100 stars 20 forks source link

latest sublimetext formatter-json bug #18

Closed hatakes closed 1 year ago

hatakes commented 3 years ago

Describe the bug:

image

image When I format with JSON, the Chinese characters will be transcoded

Steps to reproduce:

Expected behavior:

Current behavior:

Environment:

Code sample:

?

Log report:

?
latewind commented 2 years ago

modify the formatter_jsonmax.py file,add ensure_ascii=False to the json.dumps method