Presenting recursive dict (json_diff)

mcepl mcepl at redhat.com
Thu Oct 27 05:24:42 EDT 2011


On 27 říj, 10:50, mcepl <mc... at redhat.com> wrote:
> Hi,
>> I have here a simple script (https://gitorious.org/json_diff/mainline)
> which makes a diff between two JSON files. So for JSON objects

and I have completely burried to lead on this. The point is that the
resulting object can be endlessly recursively nested. On each level I
can have not only append/remove/update subobjects, but also number of
subtrees. Something like this would be better picture:
{
 "append": {
 "c": 3
 },
 "remove": {
 "b": 2
 },
 "update": {
 "a": 2,
 "children": {
 "update": {
 "son": "Ivánek"
 },
 "append": {
 "daughter": "Maruška"
 }
 }
 }
}


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /