Breaking change: rename `json` and `api` properties. Add `__html__()`.