Changes some JSON serialization parameters to fix a cycle.