Replace the JSON round-trip with #stringify.

Let's use a proper method to emulate what round-tripping data structures
through the JSON API will do.