Set( varPredictResultsCol, Table( ParseJSON( Text( LookUp( Doc_Answers, documentID = varDocID // this works ).result_prediction_JSON ) ) ) )
ForAll( varPredictResultsCol, { key: Text(Value.key), prediction: ForAll( Table(Value.prediction), { result: Text(Value.result), confidence: Value(Value.confidence) } ) } )
After that i want to patch via user TextInput:
Patch( varPredictResultsCol, LookUp(varPredictResultsCol, invisible_key_text.Text = ThisItem.key), { prediction: [{ result: TexInputCanvas1.Text, confidence: ThisItem.prediction[0].confidence }] } )
{ "type": "array", "properties": { "key": { "type": "string" }, "prediction": { "type": "array", "items": { "type": "object", "properties": { "result": { "type": [ "string", "null" ] }, "confidence": { "type": [ "number", "null" ] } } } } } }