straightening out some JSON quirks