Question: I need to replace either just the word in a json message in C# i.e. month = july I need to replace it with string
I need to replace either just the word in a json message in C#
i.e.
"month" = "july"
I need to replace it with
string p = "june"
"month"= p and have the "" appear however im not allowed to do " + p + "
so either i would have to directly replace the word june and not touch the "
OR
i need to find a way to store the " in p such as
string p = "/"june/""; //however that didnt work
***the first method is the perferred way however im not sure how to do it i was thinking regex but im not sure what that would look like
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
