Use String#to_json instead of JSON.dump

Resolves #129
Closes #130