Trim things that are to become JSON