fix for flat $/.ast

See https://github.com/moritz/json/commit/601d2a3b13e2f0dbe61a3083b77c69d708c6f133