Source/NFX.Wave/Response.cs
/// <summary>
/// Writes an object as JSON. Does nothing if object is null
/// </summary>
Writes an object as JSON. Does nothing if object is null
Writes an object as JSON . Does nothing if object is null
public void WriteJSON(object data, JSONWritingOptions options = null)
      {
        if (data==null) return;
        setWasWrittenTo();
        m_NetResponse.ContentType = NFX.Web.ContentType.JSON;
        JSONWriter.Write(data, new NonClosingStreamWrap( getStream() ), options, Encoding);
      }
public void WriteJSON ( object data , JSONWritingOptions options = null ) { if ( data == null ) return ; setWasWrittenTo ( ) ; m_NetResponse . ContentType = NFX . Web . ContentType . JSON ; JSONWriter . Write ( data , new NonClosingStreamWrap ( getStream ( ) ) , options , Encoding ) ; }
Writes an object as JSON.
Writes an object as JSON .
data
object
options
JSONWritingOptions