Various utilities for JSON References (http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03).
json-refs
resolver. ;)
json-refs
has ever had.
$ref
. Simple merging would mean allowing neighboring properties beside the $ref
and merging the properties of the JSON Reference object and the resolved object. That use case seems simple, of course some ruling for conflicts where both have the same property.
$ref
container for merging, as that's how they did it by mistake in the past. I don't disagree with you that it's semantically "replace the container with the referenced document/fragment" but any reasoning behind why this use case isn't ideal?
test.json
{
"name": "Jeremy",
"$ref": "./jeremy.json"
}
jeremy.json
{
"age": 37
}
resolved.json (merge)
{
"age": 37,
"name": "Jeremy"
}