title: Creating a JSON object
body: <p>I am making a JSON request to server using Java. Here is the following parameters.</p>
  
  <pre><code>{method:'SearchBySearchConfiguration',params:[{{SearchCriteria:'%arriva',
   IsAccountSearch:true,IsContactSearch:false,SearchByName:true,SearchByAddress:false
   CRMTextValues:[], CRMCurrencyValues:[]}]}
  </code></pre>
  
  <p>I could do this way. </p>
  
  <pre><code> JSONObject json=new JSONObject();
   json.put("method", "SearchBySearchConfiguration"); 
  </code></pre>
  
  <p>How do I add the rest of params, in name-value pair to JSON object?</p>
  
  <p>Thanks in advance!</p>