Skip to main content
Answer

JSON node list and value error

  • February 22, 2023
  • 4 replies
  • 550 views

Forum|alt.badge.img+3

Hi,

 

I am having trouble with the JSON Package. I have POST method which is reading first names and last names from a text and responses back to AA360 as a JSON.

 

When I try to get a node value or node list I get an error.

 

 

For some reason my returned JSON looks like so: (I doubt my error message has anything to do with this layout?)

[{"text":"Max Dal Prato","external_id":null,"error":false,"extractions":[{"tag_name":"First Name","extracted_text":"Max","parsed_value":"Max","offset_span":[0,2]},{"tag_name":"Last Name","extracted_text":"Dal Prato","parsed_value":"Dal Prato","offset_span":[4,12]}]}]

 

My JSON Action:

 

Any help is appreciated!

Best answer by ChanduMohammad

Hi @max.dalprato 

Update JSON: Get node list as below and give a try,

 

4 replies

Forum|alt.badge.img+22
  • Most Valuable Pathfinder
  • Answer
  • February 22, 2023

Hi @max.dalprato 

Update JSON: Get node list as below and give a try,

 


Forum|alt.badge.img+3
  • Author
  • Cadet | Tier 2
  • February 22, 2023

Hi @ChanduMohammad that works thanks! 

 

Do you mind explaining why you have to do it like so?


rbkadiyam
Premier Pathfinder | Tier 7
Forum|alt.badge.img+17
  • Premier Pathfinder | Tier 7
  • February 22, 2023

Forum|alt.badge.img+1
  • Cadet | Tier 2
  • March 8, 2023

Hi @max.dalprato 

Update JSON: Get node list as below and give a try,

 

This answered what had taken me until now over 48 hours messing around trying to work out! 
Thank you!

 

Surely Automation Anywhere, you must have some kind of cheat sheet with all these kinds of tips and tricks?