I need to split a string into multiple substrings and store those substrings into a list.
Here is an example of the possible contents stored in my initial string:
"{"Stocks": [{"APPLE-775121": false, "AMZN-007612": true, "GOLD-847571": true}]}"
The initial string is ever changing, their could be multiple stocks names in there. I need to extract these items only and store into a list of strings:
APPLE-775121
AMZN-007612
GOLD-847571
Having a little trouble parsing the string, I'm new to C# and don't know about all the useful string functions that exist.
So far what I have done is parsed the InitialString to a new string (named ParsedString) which contains:
"APPLE-775121": false, "AMZN-007612": true, "GOLD-847571": true
Can I get some help parsing the rest of this string and storing the substrings into a list? Thanks in advance!