ios double quotes on dictionary when decimal point added

前端 未结 2 450
耶瑟儿~
耶瑟儿~ 2021-01-16 01:09

Im interacting with JSON, for \"get\" it works ok,

But with the \"post\", I have an error as the dictionary objects are surrounded with double quotes \"\"

an

2条回答
  •  -上瘾入骨i
    2021-01-16 01:31

    Try using NSNumber to save your value for the key. Something like-

    [dicto setObject:[NSNumber numberWithDouble:10723.01] forKey:@"TransmissionAreaId"];
    

提交回复
热议问题