Read JulianDate from JSON

Cesium seems to like JulianDate everywhere so I want to store date values as JulianDate's directly in JSON, then read/write from disk instead of converting on the fly with Cesium.JulianDate.fromIso8601() since it's very slow.

When I read in the JSON JulianDate I can't seem to assign it in a way that's recognized by Cesium functions.

Old Code (Works, but too slow)

var start = Cesium.JulianDate.fromIso8601(result1[0][0]['UTC']);

New Code (Does not work)

var start = result1[0][0]['JD'];

Thanks,
Nick

Your code snippets don’t show the data you’re actually using. In any case, the fastest way to construct a JulianDate is to call the constructor, passing the dayNumber and secondsOfDay numbers in the TAI time standard, to avoid the UTC-TAI conversion.

https://cesiumjs.org/Cesium/Build/Documentation/JulianDate.html#JulianDate

Great, thanks. I'll store the 3 parts in JSON (separately) and reconstruct it that way.