Quick solution Owin returns json string with more double quotes "more string escape string
Solution:
[HttpGet] public HttpResponseMessage getsystemtime() { cltime time = new cltime(); = ("yyyy-MM-dd HH:mm:ss"); string relsut = (time); var resp = new HttpResponseMessage { Content = new StringContent(relsut, .UTF8, "application/json") }; return resp; }
The above article quickly solves the problem that Owin returns json string with more double quotes. "There are more string escape strings. This is all the content I share with you. I hope you can give you a reference and I hope you support me more.
Related Articles
C# Implementation method of deleting a certain row according to conditions in DataTable
Our usual method is to put the data source in DataTable, but occasionally you need to remove unnecessary lines. How to implement it? The following code will introduce to you the method of deleting lines in C# atatable. Friends who need it, let’s take a look.2016-05-05C# to implement remote connection to ORACLE database
This article mainly introduces the method of C# to remotely connect to the ORACLE database. It is a very practical technique to remotely connect to the Oracle database through the custom function db_connection_test. Friends who need it can refer to it.2014-12-12C# TreeView binds data from database example
This article mainly introduces examples of C# TreeView binding data from the database, helping everyone better understand and learn how to use C#. Interested friends can learn about it.2021-03-03Quick solution to C# verification code problem
Below, the editor will bring you a quick solution to the C# verification code problem. The editor thinks it is quite good, so I will share it with you now and give you a reference. Let's take a look with the editor2016-07-07C# implementation calculator streamlined version
This article mainly introduces the simplified version of C# implementation calculator. The sample code in the article is introduced in detail and has a certain reference value. Interested friends can refer to it.2022-01-01C# Chinese and English mixed string intercept function
This article introduces the C# Chinese and English mixed string interception function. Friends who need it can refer to it.2013-09-09Detailed explanation of the C# factory model
This article provides a detailed analysis and introduction to the factory model in C#. For those who need it, please refer to it.2013-05-05C# realizes the effect of switching left and right mouse buttons
This article mainly introduces in detail how to use C# to realize the left and right mouse button switching function. The sample code in the article is explained in detail, which is of some help to our learning C#. Interested friends can follow the editor to learn about it.2022-12-12c# Example method for simple reading of text
C# Simple example method for reading text, friends who need it can refer to it2013-04-04C# Alipay Scan code to pay the code full version
This article mainly introduces the complete version of the C# Alipay scan code payment code in detail, which has certain reference value. Interested friends can refer to it.2018-05-05