Allow serialization of JsonBuilder.

Gremlin Server can serialize out JsonBuilder results into response messages which could then be deconstructed on the client.