I need to parse some simple JOSN in bash which contains non-ascii characters without external dependencies, so I used a python solution from this answer
cat $JSON_FILE | python -c "import sys, json; print json.load(sys.stdin)['$KEY']"
This works for ascii values but other values throws this error:
'ascii' codec can't encode character u'\u2019' in position 1212: ordinal not in range(128)
Looking at this answer I think I need to cast to the unicode
type, but I don't know how.