[ create a new paste ] login | about

Link: http://codepad.org/i1ELBxd9    [ raw code | output | fork ]

PHP, pasted on Jun 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

$json = <<< JSON
    {
    "730": {
        "success": true,
        "data": {
            "price_overview": {
                "currency": "USD",
                "initial": 1499,
                "final": 1499,
                "discount_percent": 0
            }
        }
    }
}
JSON;

$json_a = json_decode($json, true);
echo $json_a['730']['data']['price_overview']['initial'];


Output:
1
1499


Create a new paste based on this one


Comments: