more renames from json to document
Some more work towards support atomic add in a map