Skip to main content
1-Visitor
March 11, 2021
Solved

How to access data in json and insert in a table ?

  • March 11, 2021
  • 1 reply
  • 1750 views

Hi, I have the following JSON from a get request:

{ "headers": "",
  "array": [ { "lat": "44.1694124" } ] }

I would like how to access the "lat" parameter and then insert into a infotable. Thankyou very much!

Best answer by slangley

Hi @BSUN_RO.

 

Give this a try:

 

var jsonArray = {
"headers":"",
"array":[ {"lat":"44.1694124"} ]
};

 

result = jsonArray.array[0].lat;

 

To store it in an infotable, please refer to this article.

 

Also, here is another article that may be helpful.

 

Regards.

 

--Sharon

1 reply

slangleyCommunity ManagerAnswer
Community Manager
March 11, 2021

Hi @BSUN_RO.

 

Give this a try:

 

var jsonArray = {
"headers":"",
"array":[ {"lat":"44.1694124"} ]
};

 

result = jsonArray.array[0].lat;

 

To store it in an infotable, please refer to this article.

 

Also, here is another article that may be helpful.

 

Regards.

 

--Sharon

BSUN_RO1-VisitorAuthor
1-Visitor
March 15, 2021

I managed to get the data following your example. Thankyou!