12 references to Json
System.ServiceModel.Web (12)
System\ServiceModel\Description\WebHttpBehavior.cs (5)
268
replyDispatchAsMultiplexing.DefaultContentTypes.Add(WebMessageFormat.
Json
, jsonContentType);
608
bool useJson = (responseFormat == WebMessageFormat.
Json
|| SupportsJsonFormat(operationDescription));
632
formatters.Add(WebMessageFormat.
Json
, SingleBodyParameterMessageFormatter.CreateDispatchFormatter(operationDescription, parameterType, false, true, this.xmlSerializerManager, this.JavascriptCallbackParameterName));
642
formatters.Add(WebMessageFormat.
Json
, GetDefaultDispatchFormatter(operationDescription, true, !IsBareResponse(style)));
655
bool useJson = (requestFormat == WebMessageFormat.
Json
);
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (2)
25
static readonly WebMessageFormat webScriptDefaultMessageFormat = WebMessageFormat.
Json
;
215
if (responseFormat == WebMessageFormat.
Json
)
System\ServiceModel\Dispatcher\JsonFormatMapping.cs (1)
32
get { return WebMessageFormat.
Json
; }
System\ServiceModel\Dispatcher\WebErrorHandler.cs (3)
66
if (isXmlSerializerFaultFormat && WebOperationContext.Current.OutgoingResponse.Format == WebMessageFormat.
Json
)
76
case WebMessageFormat.
Json
:
99
if (format == WebMessageFormat.
Json
)
System\ServiceModel\Web\WebMessageFormatHelper.cs (1)
11
return (format == WebMessageFormat.Xml || format == WebMessageFormat.
Json
);