You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Prettify JSON
# @raycast.mode fullOutput
# @raycast.packageName Developer Utilities
# Optional parameters:
# @raycast.icon 馃捇
# Documentation:
# @raycast.description Pretty prints the JSON currently in the clipboard.
pbpaste | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(json.dumps(obj,indent=2,ensure_ascii=False))'
Input json string
{"text":"浣犲ソ"}
Output in iTerm2:
Output in Raycast with ensure_ascii=False
Output in Raycast with ensure_ascii=True
The text was updated successfully, but these errors were encountered:
Sanster
changed the title
Prettify json not work for ensure_ascii=False output
something wrong when print json.dumps result with ensure_ascii=False
Feb 19, 2021
This issue/pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs in the next 7 days to keep our backlog clean. Thanks for your contributions.
script command:
Input json string
Output in iTerm2:
Output in Raycast with
ensure_ascii=False
Output in Raycast with
ensure_ascii=True
The text was updated successfully, but these errors were encountered: