anand.t
(Anand T)
August 13, 2021, 11:48am
1
Hi all,
I have a dynamic JSON file and that file i want to parse but facing the issue.
Please guide me how I can fix this.
Scenario1: If there is only one client.
Scenario 2: if more than one client.
Attaching the both JSON files for the reference. If anyone can make a small demo using this file would be more helpful.
Regards
ANJSON1.txt (510 Bytes)
JSON2.txt (879 Bytes)
ppr
(Peter Preuss)
August 13, 2021, 12:06pm
2
deserialize JSON with deserialze JSON Activity - myJOBject
for RnD purpose do following:
For each Activity | item | myJObject(“individualdetails”)(“data”).Values(Of JObject) | Type argument: JObject
log message: item(“surname”).toString
it should iterate over all clients and logs the name
anand.t
(Anand T)
August 13, 2021, 12:24pm
3
Thanks Peter.
Awesome solution. In first shot working fine. Lets implement whole JSON and let you know the result.
Regards
AN
ppr
(Peter Preuss)
August 13, 2021, 12:29pm
4
Also have alook here:
@Sonalk
Working with select Token allows us to specifiy the extractor definition on string base.
So we can define a extraction config map like (Dummy, not your case specifics)
FieldName, SToken
DIVISION, $.Division
…
Later we can dynamicly
set up eg. datatable with the corresponding column structure
looping over the config map rows - extracting the values and add it to the datatable
This approach gives us flexibility and we can avoid redundand implementations parts
Have a look on selec…
SelectToken can help us often when doing extraction
anand.t
(Anand T)
August 14, 2021, 5:33am
5
Hi Peter
Can you guide me for another attached scenario? This JSON is some different format.JSON33.txt (1018 Bytes)
Regards
AN
anand.t
(Anand T)
August 14, 2021, 11:44am
6
Hi All,
These is the syntax of JSON.
Regards
AN
Dawodm
(Mahmoud Dawod)
August 14, 2021, 11:46am
7
anand.t
(Anand T)
August 14, 2021, 11:57am
8
I am unable to get the Employer Data.
Regards
AN
ppr
(Peter Preuss)
August 14, 2021, 1:52pm
9
Ensure that the Key names are Used in Same Manner as in json. Don Not Change upper lower Case. Also respect spaces within the name
anand.t
(Anand T)
August 14, 2021, 4:06pm
10
Hi Peter,
My concern is how I fetched the information of Employer name and country i,e,
Ramesh , Rajesh and India of given JSON.
I am getting the information of currently working.
How can I call this array. Need help in this point.
Regards
AN
ppr
(Peter Preuss)
August 14, 2021, 4:28pm
11
item(“Employer”)(“1”)(“Name”). toString
And also with the selecttoken Methode WE can Retrieve values from different Nested objects with the [Index] syntax
anand.t
(Anand T)
August 14, 2021, 5:01pm
12
Since this is dynamic array of JSON. So i am using loop like this but in second time execution getting error.
ppr
(Peter Preuss)
August 14, 2021, 5:12pm
13
One Thing. We Prefer to have 1 Case = 1 topic. So the Origin Case was solved. Thennwith another Case json discussion was continued.
This can members searching for A solution confuse and make less fast to identify Case and solution. Thats why 1 topic = 1 Case
Feel free to Open for the Second Case a new topic, and Close this Case with Marking solving Post as solution of Origin case
If possible Provide also json when opening the New topic
Thanks for support
system
(system)
Closed
August 17, 2021, 5:13pm
14
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.