Skip to main content
Solved

While getting node value from JSON receiving error -Illegal character at position 1 expected '.' or '['


Forum|alt.badge.img+2

Hi,

I was calling a webservice while getting a value from the JSON I am receiving following error - Illegal character at position 1 expected '.' or '['

I was using following format $$main.temp.

"main": {    "temp": 11.02,    "feels_like": 9.72000000000003,    "temp_min": 8.58000000000004,    "temp_max": 13.04,    "pressure": 1023,    "humidity": 59,    "sea_level": 1023,    "grnd_level": 998  },

 

Best answer by fibonacci

This is part of the - Getting Started with the JSON Package exercise.

Here is the link- https://rpademo.automationanywhere.com/webservices/weatherjson.php?location=Austin,TX,USA

 

Edit

Apologies it was due a missing dot.

It is working now , thank you!

View original
Did this topic help answer your question?
This topic has been closed for comments

2 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 539 replies
  • March 17, 2025

There is nothing wrong with the snippet of JSON you pasted here. Can you paste the entire JSON message as received by Postman or SoapUI?

This looks like the OpenWeather API. We have used this API in training situations in the past with no issues.


Forum|alt.badge.img+2
  • Author
  • Cadet | Tier 2
  • 3 replies
  • Answer
  • March 17, 2025

This is part of the - Getting Started with the JSON Package exercise.

Here is the link- https://rpademo.automationanywhere.com/webservices/weatherjson.php?location=Austin,TX,USA

 

Edit

Apologies it was due a missing dot.

It is working now , thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings