Getting a json export of final object