I receive a json string from webclient such like below:
"{\"1\": \"on\", \"2\": \"on\"}"
Now I should convert it into some struct and fetch the value,the point is the value is not fixed, it may be this:
"{\"1\": \"on\", \"2\": \"on\", \"3\": \"off\"}"
or this
"{\"1\": \"on\", \"2\": \"off\", \"3\": \"on\", \"4\": \"on\"}"
so my question is how can I parse such string. I need to fetch the value which is "on".
Thanks