Added a set of utilities so simplify moving between json objects and
plain java objects