How to get value from specific key in FormTaskData?

Hi

I have created a Form Task to be assigned as a task. The user who completes the task inputs an Integer value in this case, which is then received via a Wait For Task and Resume activity.

I can use task.data.ToString which returns for example {“intVal”: 123} if the user input is 123.

Assuming I had multiple key values and I want to fetch a value by name, like “intVal” in this case which would return 123, how would I do that?

-Jon