I am getting data from database using c#
subscriptionDetailInfo.SubscriptionDescription = item.SubscriptionDescription
output will be json as below
"SubscriptionDescription":"Before you can. begin to determine what. the composition of. a particular",
now i need to replace "." to new line.
My required output will be like this
"SubscriptionDescription":"Before you can
begin to determine what
the composition of
a particular",
I try with following method but not working
subscriptionDetailInfo.SubscriptionDescription = item.SubscriptionDescription.Replace(".", "/\n / g").Replace("/\n / g", "\\n")
output of the result as below
"SubscriptionDescription":"Before you can\\n begin to determine what\\n the composition of\\n a particular",