Provide JSON format support.

Migrated from safnari.
Generalize SOAP body parsers.