graph based JSON-driven text reader