add #as_json alias for #to_json