Remove prototype from TO_JSON per https://rt.cpan.org/Public/Bug/Display.html?id=84398

Also documented JSON support.
Released version 0.30