I have a JSON String, like "{"Key1": "Value1", "Key2": "Value2"}"
And I'm trying to specifically get Value1
(I don't want the quotes)
Basically I don't want to decode the entire JSON string, I just want to extract a single value as a string
The best I can do right now is get "Key1": "Value1"
There are a bunch of questions that are similar, and here are answers that are close:
https://stackoverflow.com/a/14350155/2415178
https://stackoverflow.com/a/33783638/2415178
However, each of these answers always include the key name as well
I've been fiddling with regexr (here's my test: https://regexr.com/57fln), but I've been at it for like a half hour now and I don't really want to keep trying as I every time I learn regex I end up forgetting it because of how infrequently I use it. I'm assuming it should be pretty simple, but my solutions that are close look really ugly