add code to create a json input for the expectations calculation code