Git Product home page Git Product logo

gtkjsonviewer's Introduction

GtkJsonView

A simple JSON viewer written in Python using GTK.

Usage

From a JSON file

python gtkjsonview.py test.json

From an input stream

echo '[{"id":"1"}]' | python gtkjsonview.py

Screenshot

GtkJsonView

Dependencies

  • Python 3
  • PyGObject module

Install:

sudo pip install PyGObject

gtkjsonviewer's People

Contributors

dmeranda avatar mattn avatar vanillajonathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gtkjsonviewer's Issues

application cannot deal with large data

when trying to load json with a large collection (more than 1300) the app crash

we could :

  • have a pagination system
  • do like in the chrome dev tools, regroup entries in a sub entry (100 by 100)
    for example :
    v Array[2108]

    [0 … 99]
    [100 … 199]
    [200 … 299]
    [300 … 399]
    [400 … 499]

Add support to visualize XML

It is very easy to add support for other languages such as XML as the application rely on python data structure, given there is a marshalling library from a data language to python.

XML support can be added with the use of https://github.com/martinblech/xmltodict

pip install xmltodict

then import it in the python file

import xmltodict

and change the self.parse function to

 def parse_json(self, data):
     #self.data = json.loads(data)
     self.data = xmltodict.parse(data)

Is the support of new languages is an option for the futur of gtkjsonviewer ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.