Convert object to json. Php. php object.