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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!