This is my JSON.
{
  "OUT_STAT": "200",
  "OUT_MESS": "SUKSES",
  "OUT_DATA": [{
      "id_doc_proj": "4"
    }]
}
My Questions are:
1. How to get OUT_STAT value?
2. How to get id_doc_proj value?
I am sorry if my questions are silly because i am new at get value from JSON.
Thanks in advance.
UPDATE
I am sorry if you are saying i duplicated Parsing JSON file with PHP. I have tried code from there but i don't get any JSON from my response. I don't know where is the mistake. If you want to help, this is my php script.
<?php
    $file_path = "";
    $id_project = "16";
    $p_id_doc_proj = "50";
    $id_doc_type = "1";
    $id_user = "4";
    $url = $file_path.basename($_FILES['uploaded_file']['name']);
    if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $url)){
        $ws = "http://172.xx.x.xx:xxxx/rest/com/acc/uw/in/httprest/apponline/uploadtrough/UploadImage/$id_project/$p_id_doc_proj/$id_doc_type/$id_user/$url";
        $opts = array('http'=>array('header'=>'Content-type: application/x-www-form-urlencoded'));
        $context = stream_context_create($opts);
        $arrayLog=array();
        $data1 = file_get_contents($ws, false, $context);
        $result = json_decode($data1, true);;
        //$result = array("result" => "success");
    }else{
        $result = array("result" => "error");
    }
    echo json_encode($result);
?>
The result should show my JSON above but it was null. Any answers will help me. Thanks in advance.
 
     
    