You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This is an unexpected behavior for me. Is this a bug or feature? I believe "Hello World!" is a valid JSON response, not Hello World!. Javascript JSON.parse() function can parse the former but not the latter.
ASP.NET MVC Core 1.0.0 does this:
Meanwhile in ASP.NET Web API 5.2.3 does this:
ASP.NET MVC 5.2.3, when returning
Json("Hello World", JsonRequestBehavior.AllowGet), does this:This is an unexpected behavior for me. Is this a bug or feature? I believe
"Hello World!"is a valid JSON response, notHello World!. JavascriptJSON.parse()function can parse the former but not the latter.