Added support for JSON's $ref