Add as_json serialization.
Bump version.