remove #to_json Monkeypatching
Revert "remove #to_json Monkeytpatching"

This reverts commit adbb0fa85cc45b93ba91dc3019094b312cafb35c.