Skip to content

vitalib/4_json

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Prettify JSON

Represents JSON data from file in a pretty manner

Quickstart

Script should executed by Python3 Example of script launch on Linux, Python 3.5:


$ python pprint_json.py <path to file>

[
    {
      "properties": {
        "VersionNumber": 1,
        "RowId": "79742784-9ef3-4543-bc98-a219a8903c18",
        "DatasetId": 1854,
        "Attributes": {
          "global_id": 14371450,
          "TypeService": "реализация продовольственных товаров",
          "AdmArea": "Западный административный округ",
          "OperatingCompany": "Ароматный Мир",
          "Name": "Ароматный Мир",
          "IsNetObject": "да",
          "District": "район Кунцево",
          "PublicPhone": [
            {
              "PublicPhone": "(495) 777-51-95"
            }
          ],
          "ClarificationOfWorkingHours": null,
          "Address": "улица Академика Павлова, дом 10",
          "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"
            }
          ]
        },
        "ReleaseNumber": 2
      },
      "type": "Feature",
      "geometry": {
        "coordinates": [
          37.39703804817934,
          55.740999719549094
        ],
        "type": "Point"
      }
    },

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%