Comment by lkbm
3 years ago
Oh man. I recently threw together a "j2p" script to make converting between json and python dicts simpler, and combining it with pbcopy/pbpaste will make it so much better:
#!/usr/bin/env python3
import sys
import json
print(json.load(sys.stdin))
Or directly from the commandline:
The Python json library is callable as a module:
It has a load options: