Update Readme

Using to_json instead of JSON.generate
Merge pull request #49 from robertomiranda/patch-1

Update Readme: Using to_json instead of JSON.generate