if the server returns:
{
"repositories":
{
"xmlns":{...}
"repository":{...}
"repository":{...}
}
}
then is it a valid JSON? I tested it in This JSON Parser and it works fine, but I wonder when I use some parser to parse it and get an NSDictionary, then for the key ‘repository’, how do I get the two repositories?
Thanks!
That JSON parser is not good then, the last value will overwrite the first one. Use JSONLint instead to validate your JSON, you will see the result.