improve parsing in DSL style JSON