Add method to export an ObjectGraph to a Json string.