title: java code corresponding to Newtonsoft.Json.JsonConvert.SerializeObject(Object source,Newtonsoft.Json.JsonSerializerSettings()) in .net?
body: <p>I have a code in .net that serializes a request to the json format ... The code is something like this.</p>
  
  <pre><code>  var ops = new Newtonsoft.Json.JsonSerializerSettings();
    ops.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
    ops.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore;
    ops.DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Ignore;
    ops.Converters.Add(new Newtonsoft.Json.Converters.JavaScriptDateTimeConverter());
  
    String strSO = Newtonsoft.Json.JsonConvert.SerializeObject(source,
    bIndent ? Newtonsoft.Json.Formatting.Indented : Newtonsoft.Json.Formatting.None,
    ops);
  </code></pre>
  
  <p>I tried the java code corresponding to this portion but it doesn't work.</p>