<｜begin▁of▁sentence｜>### Instruction:
Given a simple triangle graph with the edge set [('A', 'B'), ('B', 'C'), ('C', 'A')], how can you generate a node-link data object suitable for JSON serialization using NetworkX and convert it to a JSON string?
### Response:
import networkx as nx
import json
G = nx.Graph([('A', 'B'), ('B', 'C'), ('C', 'A')])
data = nx.node_link_data(G)
json_data = json.dumps(data)
print(json_data)
<|EOT|>
