<｜begin▁of▁sentence｜>### Instruction:
Given the Condensed Matter collaborations Graph which you can read from a GML file named cond-mat-2005.gml, can you use the girvan_newman function in cdlib to perform community detection? And can you provide a JSON representation of the detected communities? Notes: You need to print the JSON representation of the communities.
### Response:
import networkx as nx
from cdlib import algorithms

# Load the graph
G = nx.read_gml('cond-mat-2005.gml')

# Apply the Girvan-Newman community detection algorithm
communities = algorithms.girvan_newman(G, level=1)

# Get the JSON representation of the communities
communities_json = communities.to_json()

print(communities_json)
<|EOT|>
