private function parse_data() { $data_string = file_get_contents('php://input'); $data = json_decode($data_string, true); return $data; }