Skip to content
Advertisement

Json path starting with 0

I’m trying to get the data from a https.get request to an API and the json path has a 0 at the beginning. What does it mean and how do I access the data?

JavaScript

The path is 0.length and the json chart viewer throws an error.

The data looks like this in json viewer:

JavaScript

Advertisement

Answer

0 is index of array, to get length of the array do

JavaScript

to select first array do

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement