kaspernj/http2 — pull request #6 by nj (2013-11-14 11:05:37+00:00)
Title: Convert for using .to_json

This will support additional cases of encoding, like where the expected result only is a single object (like a string).

Compared to what other implementations does (like .to_json, JSON.dump, JavaScript's JSON.stringify), it seems to be acceptable to do it this way.

However, not been able to locate the RFCs specifying what is right or wrong, but would be nice to have confirmed or declined.