4 ms·
I'm not disagreeing that python is slow, but why would you choose to do either in a shell script? $ time cat<<EOL {"name": "JP", "object": {"fruit": "O
by bb88 5y ago
I'm not disagreeing that python is slow, but why would you choose to do either in a shell script?
$ time cat<<EOL
{"name": "JP", "object": {"fruit": "Orange", "point": {"x": 10, "y": 20}, "number": 17},
"sunday": false}
EOL
{"name": "JP", "object": {"fruit": "Orange", "point": {"x": 10, "y": 20}, "number": 17},
"sunday": false}
real 0m0.002s
user 0m0.000s
sys 0m0.002s
- zimpenfish 5y ago> why would you choose to do either in a shell script? In the normal case, you'd have variables interpolated in there, not static JSON. And then you run into the quoting problems that jo was created to work around...