Generic NestedMap class, json & xml on the wire