strip_whitespace: don't need perl=TRUE
strip whitespace before writing JSON objects