Sha256: e32ffc09fea4a90846edeea5051d617a12600ef9108d6587dc661366dbe64e7a

Contents?: true

Size: 243 Bytes

Versions: 11

Compression:

Stored size: 243 Bytes

Contents

#!/bin/bash

#####
# Helper script for pretty formatting of json files
#####

for file in `ls -a app/phones | grep -v \\\.\$`; do
  cat app/phones/$file | python -mjson.tool > tmp.json
  rm app/phones/$file
  mv tmp.json app/phones/$file
done

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
collection-json-browser-0.0.11 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.10 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.9 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.8 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.7 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.6 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.5 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.4 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.3 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.2 test/javascripts/scripts/private/format-json.sh
collection-json-browser-0.0.1 test/javascripts/scripts/private/format-json.sh