Return input_json after calculating it