Added XJson class that allows line comments.
Added call to json_last_error() to check for errors.