Solved

JSON node list and value error

  • 22 February 2023
  • 4 replies
  • 138 views

Badge +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!

icon

Best answer by ChanduMohammad 22 February 2023, 16:33

View original

4 replies

Userlevel 5
Badge +12

Hi @max.dalprato 

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

 

Badge +3

Hi @ChanduMohammad that works thanks! 

 

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

Userlevel 5
Badge +10

@max.dalprato  please check this video 

https://www.google.com/search?q=automation+anywhere+json+read+node&rlz=1C1GCEA_enUS961US961&oq=automation+anywhere+json+read+node&aqs=chrome..69i57j33i160l2j33i22i29i30i625.8106j0j7&sourceid=chrome&ie=UTF-8#fpstate=ive&vld=cid:5f165def,vid:yuprk1DyFvI

Badge +1

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?

Reply