#!/usr/bin/env python3 ## @file # # @brief Test if the contents of the input file conform to JSON specification. # # @ingroup PyUtil import sys, json if len(sys.argv) < 2: print("Input file name required.") exit(1) with open(sys.argv[1], "r") as f: print(json.dumps(json.loads(f.read()), indent=2))