Basic checks for invalid json function usage
Properly escape ascii, utf8 in json strings
Support for SELECT JSON syntax