GRAYBYTE WORDPRESS FILE MANAGER1653

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/imunify360/venv/lib/python3.11/site-packages/simplejson/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/imunify360/venv/lib/python3.11/site-packages/simplejson//tool.py
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()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 11 2025 07:53:06
root / root
0755
__pycache__
--
July 02 2025 08:36:55
root / root
0755
tests
--
July 02 2025 08:36:55
root / root
0755
__init__.py
22.946 KB
June 09 2025 11:12:39
root / root
0644
_speedups.cpython-311-x86_64-linux-gnu.so
59.531 KB
June 09 2025 11:13:05
root / root
0755
compat.py
0.796 KB
June 09 2025 11:12:39
root / root
0644
decoder.py
14.778 KB
June 09 2025 11:12:39
root / root
0644
encoder.py
28.411 KB
June 09 2025 11:12:39
root / root
0644
errors.py
1.737 KB
June 09 2025 11:12:39
root / root
0644
ordered_dict.py
2.876 KB
June 09 2025 11:12:39
root / root
0644
raw_json.py
0.212 KB
June 09 2025 11:12:39
root / root
0644
scanner.py
2.957 KB
June 09 2025 11:12:39
root / root
0644
tool.py
1.109 KB
June 09 2025 11:12:39
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF