Revert "Pass options hash to `to_json` method."

This reverts commit 908fb63c4907c60fb3fad46293e353129f9b09c9.