Objective c React本机JSONSerialization
我有一本字典Objective c React本机JSONSerialization,objective-c,serialization,react-native,Objective C,Serialization,React Native,我有一本字典 address = { address1 = "Ivy House"; address2 = "Sandy Lane"; city = Rush; country = Ireland; county = Dublin; email = "notknown@whatever.com"; mobile = "<null>"; post
address = {
address1 = "Ivy House";
address2 = "Sandy Lane";
city = Rush;
country = Ireland;
county = Dublin;
email = "notknown@whatever.com";
mobile = "<null>";
postCode = "<null>";
smsAlert = "<null>";
telephone = 18437584;
websiteAddress = "www.example.com";
};
JSON
转换我的字典以使react native接受它的最佳方法是什么?将地址设置为
const
或var
,并以一种格式标记代码的其余部分,使这些相同的数字彼此相等,但采用const
格式。
例如:
const address = {
address1: {
}
}
将地址设置为
const
或var
,并以一种格式标记代码的其余部分,使这些数字彼此相等,但采用const
格式。
例如:
const address = {
address1: {
}
}
你看过文档了吗?你看过文档了吗?
const address = {
address1: {
}
}