Skip to content

yatinbahri/python-JSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Project Title

Functions performed on a JSON to help with validation testing

Description

Scenario - 1

Write a function to read a JSON file and return number of files belongs to each status

Scenario - 2

Using above solution return document details based on passed status argument

Scenario - 3

Write a function to return document details based on file name passed as argument

Scenario - 4

Flatten a tree (JSON) and convert it into a dictionary

Library

import json

Python version

3 or above

IDE

PyCharm community edition

Run a file via PyCharm

  1. Download the project from Git repo
  2. Launch PyCharm
  3. Open the project and file in IDE
  4. Right click on the file
  5. Tap on run

OR

  1. Open the Terminal at the bottom
  2. Make sure you are in the project dictonary
  3. Enter command python <file.py>

Run a file in console/terminal

  1. Navigate to project folder cd
  2. Enter command python <file.py>

To display results (print) in Challenge 1

  1. Navigate to file and comment func call
  2. add print(json.loads(<func_name>), intend =2))
  3. Run the file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages