Trying to use Cheshire to lazily get the stars in the Milky Way one by one from this JSON doesn't work - if I try to parse the "stars" object using core/parsed-seq, it calls directly into parse/parse*, which bypasses the lazy array functionality in parse/parse, and attempts to evaluate the entire galaxy. Even using parse/parse directly doesn't seem to work (but I'm not sure why).
Cheshire has support for lazily parsing JSON files containing large numbers of objects, but not for parsing large objects themselves.
For example:
Trying to use Cheshire to lazily get the stars in the Milky Way one by one from this JSON doesn't work - if I try to parse the "stars" object using
core/parsed-seq
, it calls directly intoparse/parse*
, which bypasses the lazy array functionality inparse/parse
, and attempts to evaluate the entire galaxy. Even usingparse/parse
directly doesn't seem to work (but I'm not sure why).