blob: c161a56f2876bcfd66a6487868f5c94807d06759 [file] [log] [blame]
#!/bin/bash
#
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
echo "This assumes you have python-simplejson installed"
for json in *.json; do
echo "Validating $json"
python -c "import simplejson; simplejson.load(open('$json'))" || \
printf "\n\n$json is broken!!!!\n\n"
done