Skip to content

Adding the whole object in which there's a diff #5

Description

@Res-QuinnM

Hi!
Thanks for the useful utility, it's really great.

I'd like to suggest a feature:
Adding an option to add the whole object (or add an 'Unchanged' category) that contains the diff(s), for example:

JSON 1
{ "name": "John", "age": 30, "cars": { "car1": "Ford", "car2": "BMW", "car3": "Fiat" } "bikes": { "bike1": "Suzuki" "bike2": "Yamaha" } }

JSON 2
{ "name":"John", "cars": { "car1":"Ford", "car2":"BMW", "car3":"Audi", "car4":"Jaguar" } "bikes": { "bike1": "Suzuki" "bike2": "Yamaha" } }

Result (symbol)
{ "-age": 30, "*cars": { "car1": "Ford", "car2": "BMW", "*car3": "Fiat", "+car4": "Jaguar" } }

Result (detailed)
{ "removed": { "age": 30 }, "changed": { "cars": { "car1": "Ford", "car2": "BMW", "changed": { "car3": "Fiat" }, "added": { "car4": "Jaguar" } } } }

Thanks

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions