make JSON first-character check use JSON whitespace

closes #51