Added JSON escaping. Entities no longer filtered by ontology index.