Auto JSON encoding and documentation.