add set_format() / allow json format

Together with #129 (`set_parser()`) we might be able to support using the json WS easily.

Setting `fmt=json` and not parsing anything might be enough.
If it works out like that, then we can ship it in the next release.