<｜begin▁of▁sentence｜>### Instruction:
Given the Adjacency network of common adjectives and nouns in the novel 'David Copperfield' which can be read from a GML file named adjnoun.gml, can you use the principled clustering function in cdlib to perform community detection, aiming to identify 3 communities? Additionally, can you provide the JSON representation of the resulting clustering?
### Response:
from cdlib import algorithms
import networkx as nx

G = nx.read_gml('adjnoun.gml')
coms = algorithms.principled_clustering(G, 3)
print(coms.to_json())
<|EOT|>
