<｜begin▁of▁sentence｜>### Instruction:
Given a MultiDiGraph with nodes 'A', 'B', and 'C', and with multiple directed edges from 'A' to 'B' and a single edge from 'A' to 'C', how can you obtain a JSON representation of the graph that does not show multiple edges between two nodes?
### Response:
import networkx as nx
import json
from networkx.readwrite.json_graph import node_link_data

# Create a multi-directional graph
G = nx.MultiDiGraph()
G.add_edge('A', 'B')
G.add_edge('A', 'B')
G.add_edge('A', 'C')

# Hide multi-edges and get a simplified representation of the graph
H = nx.DiGraph(G)

# Convert graph to node-link format which is suitable for JSON serialization
data = node_link_data(H)
# Hide multi-edges by not including them in the JSON dict
json_graph = json.dumps(data)
print(json_graph)
<|EOT|>
