add mgraph to deal with the json data