JSON serialization for Sigma graphing.