<｜begin▁of▁sentence｜>### Instruction:
Given the Condensed Matter collaborations graph from the year 2005, which can be read from a GML file named cond-mat-2005.gml, can you apply the DEMON community detection algorithm provided by the cdlib library to find overlapping communities? Additionally, can you convert the community detection result into a JSON format?
### Response:
import networkx as nx
from cdlib import algorithms

G = nx.read_gml('cond-mat-2005.gml')
coms = algorithms.demon(G, epsilon=0.25, min_com_size=3)

# Convert the community detection result to JSON
demon_json = coms.to_json()

print(demon_json)
<|EOT|>
