Use JSON.decycle to better deal with cyclic data structures