add experimental graph dump-to-JSON object function