8000 GitHub - p-well/4_json · GitHub
[go: up one dir, main page]

Skip to content
p-wellPublic
forked from devmanorg/4_json

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Prettify JSON Data

The purpose if this program is to obtain pretty view of JSON file. The program takes path to file with JSON as an argument and then prints prettified content

Quickstart

To run program use the following commands in CLI:

python pprint_json.py -p <filepath> 

or

python pprint_json.py --page <filepath>

Herein filepath is the required named agrument. Specify path to file after flag -p or flag --path

Example of script launch

[
    {
        "Cells": {
            "OperatingCompany": "Ароматный Мир",
            "global_id": 14371450,
            "TypeService": "реализация продовольственных товаров",
            "District": "район Кунцево",
            "AdmArea": "Западный административный округ",
            "Name": "Ароматный Мир",
            "PublicPhone": [
                {
                    "PublicPhone": "(495) 777-51-95"
                }
            ],
            "IsNetObject": "да",
            "WorkingHours": [
                {
                    "DayOfWeek": "понедельник",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "вторник",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "среда",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "четверг",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "пятница",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "суббота",
                    "Hours": "09:30-22:30"
                },
                {
                    "DayOfWeek": "воскресенье",
                    "Hours": "09:30-22:30"
                }
            ],
            "ClarificationOfWorkingHours": null,
            "geoData": {
                "coordinates": [
                    37.39703804817934,
                    55.740999719549094
                ],
                "type": "Point"
            },
            "Address": "улица Академика Павлова, дом 10"
        },
        "Id": "79742784-9ef3-4543-bc98-a219a8903c18",
        "Number": 1
    }
]

Project Goals

The code is written for educational purposes. Training course for web-developers -DEVMAN.org

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0