champmq / jsonViewer

View JSON files on a website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsonViewer

View JSON files on a website

Installation + Setup

pip3 install Flask json
git clone https://github.com/champmq/jsonViewer.git
cd jsonViewer
python3 jsonViewer.py

To change the colors edit the values in config.json

HowTo

Its based on an RestAPI which means you have to start it first with:

python3 jsonView.py

Request format:

localhost:port/json_content

Output:

The output is just a text because JSON would parse it wrong so for example (python)

import requests
import urllib.parse

req = requests.get("http://127.0.0.1:5000/" + urllib.parse.quote("JSON_CONTENT"))
print(req.text)

Image

Example
background-color: #35363d

Credits

Thanks to HimmelKreis4865 for choosing the colours.

About

View JSON files on a website

License:Apache License 2.0


Languages

Language:Python 100.0%