RelaxNG for JSON (Re: [giftfile-dev] OpenPGP cleartext / JSON)

Anthony Carrico acarrico at memebeam.org
Sat Feb 10 10:20:55 EST 2007


On Fri, Oct 27, 2006 at 02:45:06PM -0400, Anthony Carrico wrote:
> On Fri, Oct 27, 2006 at 02:26:27PM -0400, Anthony Carrico wrote:
> > The second is to switch the signed text from XML to JSON (RFC 4627)
> > syntax.
> 
> One issue with this switch is how to write a spec. JSON doesn't have
> any standard schema language. I started using ABNF (RFC 4234). The
> JSON grammer itself is written in ABNF. ABNF works fine for terminals
> like sha1 and timestamp, but is problematic for JSON values. How do
> you accurately and concisely express legal choices like member
> interleaving and string escaping? Next I tried a combination of ABNF
> rules and JSON template rules (invented to address the problem). My
> simple templates address the string escape and member interleaving
> problems, but can't express optional members (like certificate
> series).

An update on this. Since RelaxNG is such a nice schema language, I've
written an spec adapting RelaxNG to JSON:

  http://giftfile.org/depot/home/acarrico/json/json-rng.txt

Please check it over.

-- 
Anthony Carrico
http://memebeam.org/acarrico/
http://giftfile.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://giftfile.org/lists/archive/giftfile-dev/attachments/20070210/c14cc1b1/attachment.pgp


More information about the giftfile-dev mailing list