Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib64 /
python2.7 /
site-packages /
simplejson /
Delete
Unzip
Name
Size
Permission
Date
Action
tests
[ DIR ]
drwxr-xr-x
2017-07-04 01:43
__init__.py
22.55
KB
-rw-r--r--
2014-06-24 20:49
__init__.pyc
20.96
KB
-rw-r--r--
2016-07-14 14:02
__init__.pyo
20.96
KB
-rw-r--r--
2016-07-14 14:02
_speedups.so
46.54
KB
-rwxr-xr-x
2016-07-14 14:02
compat.py
1.01
KB
-rw-r--r--
2014-06-24 20:49
compat.pyc
1.99
KB
-rw-r--r--
2016-07-14 14:02
compat.pyo
1.99
KB
-rw-r--r--
2016-07-14 14:02
decoder.py
14.15
KB
-rw-r--r--
2014-06-24 20:49
decoder.pyc
12.05
KB
-rw-r--r--
2016-07-14 14:02
decoder.pyo
12.05
KB
-rw-r--r--
2016-07-14 14:02
encoder.py
24.69
KB
-rw-r--r--
2014-06-24 20:49
encoder.pyc
19.71
KB
-rw-r--r--
2016-07-14 14:02
encoder.pyo
19.71
KB
-rw-r--r--
2016-07-14 14:02
ordered_dict.py
3.29
KB
-rw-r--r--
2014-06-24 20:49
ordered_dict.pyc
5.02
KB
-rw-r--r--
2016-07-14 14:02
ordered_dict.pyo
5.02
KB
-rw-r--r--
2016-07-14 14:02
scanner.py
4.54
KB
-rw-r--r--
2014-06-24 20:49
scanner.pyc
4.98
KB
-rw-r--r--
2016-07-14 14:02
scanner.pyo
4.98
KB
-rw-r--r--
2016-07-14 14:02
tool.py
1.11
KB
-rw-r--r--
2014-06-24 20:49
tool.pyc
1.41
KB
-rw-r--r--
2016-07-14 14:02
tool.pyo
1.41
KB
-rw-r--r--
2016-07-14 14:02
Save
Rename
r"""Command-line tool to validate and pretty-print JSON Usage:: $ echo '{"json":"obj"}' | python -m simplejson.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -m simplejson.tool Expecting property name: line 1 column 2 (char 2) """ from __future__ import with_statement import sys import simplejson as json def main(): if len(sys.argv) == 1: infile = sys.stdin outfile = sys.stdout elif len(sys.argv) == 2: infile = open(sys.argv[1], 'r') outfile = sys.stdout elif len(sys.argv) == 3: infile = open(sys.argv[1], 'r') outfile = open(sys.argv[2], 'w') else: raise SystemExit(sys.argv[0] + " [infile [outfile]]") with infile: try: obj = json.load(infile, object_pairs_hook=json.OrderedDict, use_decimal=True) except ValueError: raise SystemExit(sys.exc_info()[1]) with outfile: json.dump(obj, outfile, sort_keys=True, indent=' ', use_decimal=True) outfile.write('\n') if __name__ == '__main__': main()