0

I have the json response like below:

  "hj.tradingResponse" =     {
    "@approved" = true;
    "@qualified" = true;
    billingAddress =         {
        address = "146 W. Main Street";
        city = Aguilar;
        country = US;
        postalCode = 81020;
        state = Colorado;
    };

I stored a result in a dictionary. Byt when I give value for key [result valueForKey:@"\"@approved\""];

I'm getting null value but I thought @approved is not recognising.

Any idea how to solve this?

4

1 に答える 1

1

JSON では、引用符自体はキーの一部ではありません。

試す

[result valueForKey:@"@approved"]
于 2013-02-06T19:06:17.203 に答える