improve json parser speed

This changes the way the JSON body parser checked the first non-
whitespace character. Benchmarks show the RegExp is ~21x faster
than String.prototype.trim in the wrose case, ~36x faster in the
common case (no leading whitespace).