Handler.writejsonC(path)
Return a json file shown on the website about shortest path from person to person.
Parameters
- path: list of person idf
Returns: json file
Raises: path is empty.