How to get regex value from json

Seems like you’d be better off deserializing the JSON into an actual dictionary, and then look for the value there. JSON isn’t a dictionary, it’s just a string.