Give us feedback
jsoncompareversion
Reactive icon

JSONCompareVersion

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 18 Oct by 
0.0
 (0 ratings)
jsoncompareversion

JSONCompareVersion

Details
upgrade package Newtonsoft.Json to 13.0.3
Read more

Using Newtonsoft.Json to 13.0.3

Updated before force Compare_JSON 


Gives a textual comparison between two JSON strings. Works with recursive objects and with arrays.


Optional parameters allow some formatting of the result string:


Parameter

Description

Default

KeyPrefix

Text inserted before the key name of the changed property

""

KeySuffix

Text inserted after the key name of the changed property

": "

ChangeSeparator

Text inserted between changed values

" > "

PropertySeparator

Text separator between properties

", "

ExcludeProperties

List of key names that will not be compared and not included in the result

"ChangedBy;DateChanged;Changed"



Example


Comparing these two JSON strings:


{

    "name":"John",

    "age":30,

    "cars": [

        { "name":"Ford", "models":[ "Fiesta", "Focus", "Mustang" ] },

        { "name":"BMW", "models":[ "320", "X3", "X5" ] },

        { "name":"Fiat", "models":[ "500", "Panda" ] }

    ]

 }


{

    "name":"Johnny",

    "age":30,

    "cars": [

        { "name":"Ford", "models":[ "Fiesta", "Ka", "Mustang" ] },

        { "name":"BMW", "models":[ "350", "X3", "X5" ] },

        { "name":"Seat", "models":[ "500", "Panda" ] }

    ]

 }


The default result is:


name: John > Johnny, models[1]: Focus > Ka, models[0]: 320 > 350, name: Fiat > Seat



Please maintain with your idea!

Release notes (1.0.0)
License (1.0.0)
Reviews (0)