Added functionality to provide objects to the json archive rather than having it create those objects internally