Skip to content

Instantly share code, notes, and snippets.

@ksomemo
Created June 19, 2020 01:45
Show Gist options
  • Select an option

  • Save ksomemo/d4753e3d60710c47a9caf71079790031 to your computer and use it in GitHub Desktop.

Select an option

Save ksomemo/d4753e3d60710c47a9caf71079790031 to your computer and use it in GitHub Desktop.

Revisions

  1. ksomemo revised this gist Jun 19, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion py_json_formatter.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    python -c 'import sys,json as j;j.dumps(j.loads(sys.stdin.read()),indent=2,ensure_ascii=False)'
    python -c 'import sys,json as j;print(j.dumps(j.loads(sys.stdin.read()),indent=2,ensure_ascii=False))'
    # no ensure_ascii
    python -m json.tool
  2. ksomemo created this gist Jun 19, 2020.
    3 changes: 3 additions & 0 deletions py_json_formatter.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    python -c 'import sys,json as j;j.dumps(j.loads(sys.stdin.read()),indent=2,ensure_ascii=False)'
    # no ensure_ascii
    python -m json.tool