I'm new to JSON so please excuse my ignorance. I need to get a JSON Object like this:
jsonString =
{
"Key": {"AppID":"19","Username":"sompoRoot","Password":"11223344"},
"deviceList": ["43ab48a0eb9f950d9c2498f8c2cfa1e5b8a62687479cfad849bbc455b88e67b6",
"43ab48a0eb9f950d9c2498f8c2cfa1e5b8a62687479cfad849bbc455b88e67b6"],
"aps": {"alert":"merhaba dunya","sound":"default","badge":"10",
"dictionaryArray":["a","b"],
"production":"false"}
}
I will get AppID, UserName and Password from database. deviceList is something like that :43ab48a0eb9f950d9c2498f8c2cfa1e5b8a62687479cfad849bbc455b88e67b6, 43ab48a0eb9f950d9c2498f8c2cfa1e5b8a62687479cfad849bbc455b88e67b6... and I will get alert, sound, badge dictionaryArray and production from text input. I got and convert String these parameter. I search from internet but I think it is more complex, how can I get like that JSON, Thank you.