The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started

Introduction

Author Source Code Software License Build Status Coverage Status Quality Score

If you have used Swagger, JSON Schema or RAML to document your API you have probably used JSON references. A JSON reference is a JSON object that looks like {"$ref": "http://some/where"} and points to a JSON object somewhere else so you don’t have to copy and paste it. It’s kinda like a hyperlink for JSON.

JSON References are usually used with JSON Schema and API tooling but it’s actually a separate standard. It’s pretty handy any time you are writing a complex JSON document and need to repeat yourself.

JSON Reference is a library for resolving references. You can use this library to resolve references into proxy objects, allowing you to work with a JSON schema with references like a normal JSON document. You can also inline referenced JSON and create new JSON documents without references.