0

my web view is loaded with below data can any one tell me how to get value of "updated_at" in below webview data.

{
    "status": "marked paid",
    "orderstatus": {
        "status": "ordered and paid",
        "created_at": "2014-07-21T04:17:16.820909",
        "updated_at": "2014-07-21T04:19:25.303492",
        "order": {
            "information": [
                {
                    "removed_products": {
                        "both": [],
                        "right": [],
                        "left": []
                    }
                }
            ]
        }
    }
}
rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

0
var obj = {
    "status": "marked paid",
    "orderstatus": {
        "status": "ordered and paid",
        "created_at": "2014-07-21T04:17:16.820909",
        "updated_at": "2014-07-21T04:19:25.303492",
        "order": {
            "information": [
                {
                    "removed_products": {
                        "both": [],
                        "right": [],
                        "left": []
                    }
                }
            ]
        }
    }
};

var updated_at = obj.orderstatus.updated_at;
alexP
  • 3,672
  • 7
  • 27
  • 36