Baby123
(Baby)
1
Hi Team,
I have one Jason data when I try to deserialze the Jason data i getting below format.
Input file

vs

About the second screenshot: when JSON is deserialized sucessfully and we dump it out to the immediate panel we got this correct output.
in case we want to to cross-check the structures we would append a toString()
But to finalize the work
- please share with us the origin JSON as text file
- a description on what is needed & expected processing output
Baby123
(Baby)
3
@ppr ,
I am unable to share the input data.
But can you please tell me the solution.
I want know why I am getting Jproperty 1,2 etc …
ppr
(Peter Preuss)
4
as mentioned above, this is the representation of the JObject within the immediate panel and also correct.
We also mentioned:
yourJObjectVar.toString()
Baby123
(Baby)
5
Hi @ppr ,
When I try to get the Value date from the Jobject after desterilise I was used Deserialze.SelectToken(“Value Date”)
Then I got correct values .
But it’s showing object reference not set an instance of an object.
In the immediate panel its showing Jproperty (1) {[02/03/2024]}.
How to get the value date from above one
Baby123
(Baby)
7
I was used Get Task Data activity to get the queue data after I was used the Task data.GetDataJasonOjbect command to get the Jason format.
That is my input Jason format 1st screenshot in above.
The I need to extract the few details from the Jason. Loke Transction Id ,value date and invoice amount etc…
Note: Some times we got multiple Jason values in queue.
I need to extract all the Jason information one by one
Please suggest
ppr
(Peter Preuss)
8
when working with the SelectToken have a look here for the JSONPath Syntax
https://goessner.net/articles/JsonPath
especially pay attention on starting with .
or ..
in such case we define a retrieval to the loop element like myJObject(“data”).Values(Of JObject)
But it depends on the details and structures
data can also be anonymized / redacted and then shared with us.
system
(system)
Closed
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.