JSON cleanup