You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There doesn't seem to be a mechanism to create an empty dictionary object? Since [] in swift can be interpreted as an empty array or empty object. And,
var json:JSON = JSON([])
creates an empty array, so you can't add properties.
E.g., This would seem to be appropriate, but doesn't work
There doesn't seem to be a mechanism to create an empty dictionary object? Since [] in swift can be interpreted as an empty array or empty object. And,
var json:JSON = JSON([])
creates an empty array, so you can't add properties.
E.g., This would seem to be appropriate, but doesn't work
var json:JSON = JSON()
json["id"].intValue = 123
println(json)
{
"id": 123
}
The text was updated successfully, but these errors were encountered: