get_json now returns node type too - close #447