simplify whitespace handling in Mojo::JSON