passing value by URI reference

29 views
Skip to first unread message

Oleg Sukhoroslov

unread,
Dec 14, 2009, 4:53:10 AM12/14/09
to json-...@googlegroups.com
Hi,

I have a question not directly related to JSON Schema but hopefully some
of JSON experts can help me.
Is there any widely-used/preferred way to refer to an attribute value
via URI reference (URI of resource containing attribute value)?
The way I'm looking for should support both pass-by-value or
pass-by-reference styles depending on circumstances.
For example if the attribute value is large enough it is referred as URI
instead of placing it in JSON document.
Here's another case for using URI references when parts of JSON are
external Web resources:
http://duncan-cragg.org/blog/post/introducing-fjord/

Regards,
Oleg

Kris Zyp

unread,
Dec 14, 2009, 11:03:18 AM12/14/09
to json-...@googlegroups.com
JSON referencing [1] has been used for a while and serves this purpose,
but actually JSON Schema now supercedes JSON referencing as it defines
how to do hyperlinks in JSON, see section 6 in the draft [2]. It looks
fjord also provides additional functionality for rule matching that is
beyond the scope of JSON schema and hyperlinking (but may very well be
useful).
[1] http://ajaxian.com/archives/json-news-json-schema-and-json-referencing
[2] http://tools.ietf.org/html/draft-zyp-json-schema-01#section-6
Kris
Reply all
Reply to author
Forward
0 new messages