$json = '{"name": "John", "age": 30, "city": "New York"}'; $data = json_decode($json); // remove age property $json = JPath\clean($data, 'age'); echo $json; // output : {"name": "John", "city": "New York"}In the above example, the JPath Clean library is used to remove the age property from the JSON data. Package Library: The JPath Clean library is part of the JPath package library which provides several other tools for manipulating JSON data in PHP.