Skip to content

jonttu-/json_diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python JSON differ

Description

This is an example project to find and print differences in two JSON inputs.

Requirements

python

Contents

Included is the actual class that does the diff (jsondiffer.py) as well as a test suite (jsondiffer_tests.py)

Usage example

>>> import jsondiffer
>>> differ = jsondiffer.MyDiffer()
>>> result = differ.diff({"foo":{"bar":"baz1","biz":"foo"}}, {"foo":{"bar":"baz","biz":"foo"}})
>>> print result
{'foo': {'bar': 'baz'}}

Tests

To execute the included unit tests:

$ python json_differ_tests.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages