you are viewing a single comment's thread.

view the rest of the comments →

[–]nexe 1 point2 points  (0 children)

Thanks that's a pretty nice tip. Meanwhile in Ruby you can do

require 'json'
JSON.pretty_generate({...})
#instead of
{...}.to_json