Get JSON data from request

        $data = $this->input->post();
        //json_decode($dataObj, true);
        if ($data == false){
            $data = file_get_contents('php://input');
            if($data == false){
                $this->fail_response('參數錯誤', 'E98');
            }else{
                $data = json_decode($data, true);
            }
        }
        logg($data);