A simple and straightforward way to serialize Ruby objects to JSON