The JSON format requires control characters to be encoded as Unicode
code points so replacing the byte 0x12 in your input with the string
"\u0012" (that's a literal backslash, so in code it'd be "\\u0012")
would create valid JSON that means the same thing. See the goofy
syntax diagrams on http://json.org/ for a more complete explanation.
> if I try to check for '\x12' I get compiler errors like:
>
> missing '
> syntax error: unexpected name, expecting := or = or : or comma
> missing '
> newline in string
> empty character literal or unescaped ' in character literal
> missing '
Show us your code.
Ian