dumper now uses a buffer for more flexibility
json is encoded with lower case field names
having some problems with changing the contents of the json object
the clone approach looks promising