1#!/bin/bash
2#
3# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7set -e
8echo "This assumes you have python 2.4 or later installed"
9for json in *.json; do
10   echo "Validating $json"
11   python -c "import json; json.load(open('$json'))" || \
12      printf "\n\n$json is broken!!!!\n\n"
13done
14