Ah, it is not using JSON, just simple condition like this:
My TextInput_Within.Text is your string: 5, 15,25, 45, 54 etc.
I separate number by "," to find X inside each of them.
If it find X inside any number, it will join that number into another string named stringFound.
The count is only for me to check if there is X inside, so if count=0 no X was found.
Hope it is clear to you :D
Don't hesitate to contact me on Skype: DongNguyen602