Skip to content

A simple JSON object key/value parser written in Python. Define the key, run the program, and export the values in a CSV file.

License

Notifications You must be signed in to change notification settings

scottgriv/python-json_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Python Badge
GitHub Badge Email Badge BuyMeACoffee Badge
Bronze


Python JSON Parser

A simple Python script to parse a JSON file and output the results to a text file.


Table of Contents

Background Story

I wanted to parse out a GitHub API response consisting of all of my repositories. The problem is, there are too many JSON elements to parse out manually. I needed a way to parse out specific the JSON elements values only, automatically. So I built this!

Getting Started

  1. Clone this repository.
  2. Install Python.
  3. Install Pip.
  4. Place your JSON file in the root directory of this repository (see example.json).
  5. Adjust the script to parse out the JSON elements you want (see json_parser.py - lines 7-9 currently set to parse out the first instance of "name").
  6. Run the script: python json_parser.py
  7. View the output in the output.txt file.

Resources

License

This project is released under the terms of The Unlicense, which allows you to use, modify, and distribute the code as you see fit.

  • The Unlicense removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
  • For more details, see the LICENSE file in this repository.

Credits

Author: Scott Grivner
Email: scott.grivner@gmail.com
Website: scottgrivner.dev
Reference: Main Branch


About

A simple JSON object key/value parser written in Python. Define the key, run the program, and export the values in a CSV file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages