title: How to create a JSON object in objective-c?
body: <p>i have a javascript DTO as given below . what is the structure to convert as a json object using <strong>params=DTO list given below should come here</strong> in objective-c??</p>
  
  <p>How can i construct the JSON object based on this?</p>
  
  <pre><code>private List&lt;Long&gt; sizes=new ArrayList&lt;Long&gt;();
  private List&lt;Long&gt; colors=new ArrayList&lt;Long&gt;();
  private List&lt;Long&gt; styles=new ArrayList&lt;Long&gt;();
  private List&lt;String&gt; gender=new ArrayList&lt;String&gt;();
  private List&lt;Long&gt; brands=new ArrayList&lt;Long&gt;();
  private Long vendor;
  private String vendorName;
  private Boolean isNewArrival=false;
  private Boolean isSort=false;
  private Boolean isSale=false;
  private Boolean isNew=false;
  private Boolean isVintage=false;
  private Boolean isComingSoon=false;
  private Long saleSize;
  private Double minPrice=1.0;
  private Double maxPrice=5000.0;
  private Integer minSalePercentage=0;
  private Integer maxSalePercentage=70;
  private String socialCategory; 
  </code></pre>