draw nodes from json