json support

Hi,

I'd like to share things between different systems and languages. Although yaml has lot's of implementations it's not accepted everywhere so json would be my next best choice. This patch adds support for it. BTW wouldn't it be better just to pass a "serializer" that responds to dump and load as a config param?

THX