added json for node and relation classes