downloading json and parsing into diagram