JSON exporter now preserves same-level learning order