summaryrefslogtreecommitdiffstats
path: root/test.sh
blob: 76e4e124d689e8958a183376cfe8430580568d92 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash
set -eu
T=$(mktemp)
trap "rm $T" EXIT
echo '{ "a": 5, "b": {"c": 6, "d": "hello" } }' > $T
python ghetto_json path=$T a=7 b.c=yellow b.d=unset
diff -u <(printf '{\n  "a": 7,\n  "b": {\n    "c": "yellow"\n  }\n}') $T