[bind10-dev] change of data format

Jelte Jansen jelte at isc.org
Thu Jul 22 08:06:32 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

as the final part of the convert-to-json effort, i've updated the specfile and
config file parsers to use python's json module.

That one is a bit more strict about JSON than our own, and JSON is a little bit
different than straight python format (which these used to use); it wants
true/false instead of True and False, strings must be quoted with double quotes
instead of single quotes, and lists and dicts may not have a comma after their
last element.

Now I've updated all files in the tree, but there is another one; the stored
configuration. If you update and get a JSON error, the easiest workaround is to
remove the b10-config.db file (and lose your config). A less easy one is to edit
it and change the specific contents as described above.

I can add backwards compatibility though, which we should definitley have if we
later make a change like this. But at this point I'm not so sure about it, and
I've decided against it (do we want backwards compatibility for
development-releases?). If the rest disagrees, I'll add it :)

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxH/AgACgkQ4nZCKsdOncWfrgCg2NNXeAlwJ/IhaiBIahQSLlAt
fNgAoKW6FVZO2/QnL6JU/zDFzlmXebxV
=B8Sr
-----END PGP SIGNATURE-----



More information about the bind10-dev mailing list