Parse CZML

1. A concise explanation of the problem you’re experiencing.

Is it possible to parse CZML so that I can get to the objects/entities inside?

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var obj = JSON.parse(czml);


3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I want to get to the coordinates stored inside objects for further processing

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.48; Windows 10; Latest Chrome;

The way I do it (but after loading CZML):

var path = Cesium.CzmlDataSource.load(czml file)

            var path_entities = path.entities.values;
           for (var i=0; i<path_entities.length; i++)
                    for (var j=0; j<path_entities[i]._position._property._values.length; j+=3)
                        var x = path_entities[i]._position._property._values[j];
                       var y = path_entities[i]._position._property._values[j+1];
                       var z = path_entities[i]._position._property._values[j+2];

Thank you!!