serializeToJsonString(), true); $parsedResult = []; if (is_array($properties)) { foreach ($properties as $property) { $parsedResult[$property] = $result[$property] ?? null; } } else if (is_string($properties)) { $parsedResult = $result[$properties] ?? $default; } else { $parsedResult = $result; } return $parsedResult; } }