Linux localhost 6.1.10-x86_64-linode159 #1 SMP PREEMPT_DYNAMIC Wed Feb 8 14:14:45 EST 2023 x86_64
Apache/2.4.25 (Debian)
Server IP : 45.33.61.127 & Your IP : 216.73.217.36
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python2.7 /
json /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
14.37
KB
-rw-r--r--
2020-08-22 10:03
__init__.pyc
13.59
KB
-rw-r--r--
2020-10-08 05:15
decoder.py
13.38
KB
-rw-r--r--
2020-08-22 10:03
decoder.pyc
11.66
KB
-rw-r--r--
2020-10-08 05:15
encoder.py
16.01
KB
-rw-r--r--
2020-08-22 10:03
encoder.pyc
13.37
KB
-rw-r--r--
2020-10-08 05:15
scanner.py
2.24
KB
-rw-r--r--
2020-08-22 10:03
scanner.pyc
2.17
KB
-rw-r--r--
2020-10-08 05:15
tool.py
997
B
-rw-r--r--
2020-08-22 10:03
tool.pyc
1.26
KB
-rw-r--r--
2020-10-08 05:15
Save
Rename
r"""Command-line tool to validate and pretty-print JSON Usage:: $ echo '{"json":"obj"}' | python -m json.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -m json.tool Expecting property name enclosed in double quotes: line 1 column 3 (char 2) """ import sys import json def main(): if len(sys.argv) == 1: infile = sys.stdin outfile = sys.stdout elif len(sys.argv) == 2: infile = open(sys.argv[1], 'rb') outfile = sys.stdout elif len(sys.argv) == 3: infile = open(sys.argv[1], 'rb') outfile = open(sys.argv[2], 'wb') else: raise SystemExit(sys.argv[0] + " [infile [outfile]]") with infile: try: obj = json.load(infile) except ValueError, e: raise SystemExit(e) with outfile: json.dump(obj, outfile, sort_keys=True, indent=4, separators=(',', ': ')) outfile.write('\n') if __name__ == '__main__': main()