dewski/json_builder — pull request #18 by neerfri (2012-02-08 19:02:23+00:00)
Title: use String#to_json to prevent UTF8 byte splicing

I've had problems with UTF8 text in json responses.
The problem is rooted in ruby's String#inspect that splices the last bytes of the string due to incorrect count of bytes.
String#to_json handles this well.