Constants in json.inc

JSON types
JSON invalid handle
Helper macros for checking type