I have a dynamic json objects like below and trying to parse it with regex.
result array like {ID,1492,SourceID,AAA.A,Source,....}
{
"ID" : "1492",
"SourceID" : "AAA.A",
"Source" : 1,
"SourceID" : "292",
"Child" : "JKLM",
"Name" : "KAPITAL YAT. ",
"ChildName" : null,
"ListingDate" : "20140428",
"SeqNo" : "10000000",
"Average" : "3092,3248",
"SomeValue" : null
}
my pattern does not get "null" and get ","
How can i handle this any suggestions?
https://regex101.com/r/iFjq8w/2
What I have tried:
string pattern = @"(?<=\")([^\s].*?)(?=\")";
MatchCollection matches = Regex.Matches(item.ToString(), pattern);