{
"FirstName" :"Kaustubh",
"LastName" :" Sawant ",
"StartTime" :"01:00:00"
}
I want to get printed
First Name: Kaustubh
Last Name: Sawant
Start time : 01:00:00
This is the demo code written the actual object retrieves more values. Actual code :
String JsonValue=JsonConvert.SerializsObject(object);
also used Formatting.Indented
and tried
Regex.Replace(JsonValue,@"\{},"","").Trim();
and then wrote into file using StreamWriter
.