90
Views
7
Comments
[JSON_Compare] Json compare extension | outsystems
json-compare
Web icon
Forge asset by Steven Phipps
Application Type
Reactive
Service Studio Version
11.53.26 (Build 61639)

Hello outsystems team, I implementing the json compare component for old list of records to new list of records to compare ,here im facing the error when im passing list of record to parsing the jobject eg- jobject.parse("Some json string"),I think need to modify the .Net code . please help me to solve

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello Muruga,

Can you please share screenshot of error you are getting to understand the issue?

2022-02-01 06-08-14
Muruga Nandan

2022-02-01 06-08-14
Muruga Nandan

above error message appers when passing the list of record in json format to jobject


2020-11-25 10-45-32
Mostafa Othman
Champion

I may suggest to copy your Json and parse it in one of online Json parsers to make sure your Json string is correct. you can use this online validator : https://jsonformatter.curiousconcept.com/

Also If you have any list attribute make sure in Json string its surrounded by {}.

2022-02-01 06-08-14
Muruga Nandan

yes @Mostafa Othman, thank you for reply in list of records i trimmed the first "[" and replace this "{" and same for last paranthesis, but its not work

2020-11-25 10-45-32
Mostafa Othman
Champion

your valid Json should look like this one:

{

   "items":[

      {

         "itemDesc":"#1",

         "projectAmount":"12345",

         "cummulativeAmount":"123"

      },

      {

         "itemDesc":"#2",

         "projectAmount":"6789",

         "cummulativeAmount":"67"

      },

      {

         "itemDesc":"#3",

         "projectAmount":"12567",

         "cummulativeAmount":"12"

      }

   ]

}

2022-02-01 06-08-14
Muruga Nandan

ok Mostafa Othman, will check and inform you


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.