Ruby object to JSON document conversion format, for persistence to Riak db