我有一个JavaScript DTO,如下所示。什么是结构转换为json对象使用params =下面给出的DTO列表应该在这里 in objective-c ??如何在objective-c中创建JSON对象?
我如何构建基于此的JSON对象?
private List<Long> sizes=new ArrayList<Long>();
private List<Long> colors=new ArrayList<Long>();
private List<Long> styles=new ArrayList<Long>();
private List<String> gender=new ArrayList<String>();
private List<Long> brands=new ArrayList<Long>();
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;
您的代码例子是C#,它既不是Objective-C也不是Javascript。你尝试了什么?你能举一个你试图为自己解决问题的例子吗? – RyanR 2013-10-28 02:35:03