Convert pajek graph format to json format. This json format is easy to use for D3 graphs.