SILENT KILLERPanel

Current Path: > > opt > alt > python27 > lib64 > python2.7 > json


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python27/lib64/python2.7/json

NameTypeSizeLast ModifiedActions
__init__.py File 14721 bytes January 08 2025 10:42:55.
__init__.pyc File 13991 bytes January 08 2025 10:42:55.
__init__.pyo File 13991 bytes January 08 2025 10:42:55.
decoder.py File 13698 bytes January 08 2025 10:42:55.
decoder.pyc File 12116 bytes January 08 2025 10:42:55.
decoder.pyo File 12116 bytes January 08 2025 10:42:55.
encoder.py File 16399 bytes January 08 2025 10:42:55.
encoder.pyc File 13942 bytes January 08 2025 10:42:55.
encoder.pyo File 13942 bytes January 08 2025 10:42:55.
scanner.py File 2297 bytes January 08 2025 10:42:55.
scanner.pyc File 2268 bytes January 08 2025 10:42:55.
scanner.pyo File 2268 bytes January 08 2025 10:42:55.
tool.py File 997 bytes January 08 2025 10:42:55.
tool.pyc File 1320 bytes January 08 2025 10:42:55.
tool.pyo File 1320 bytes January 08 2025 10:42:55.

Reading File: //opt/alt/python27/lib64/python2.7/json/tool.py

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()

SILENT KILLER Tool