Skip to content

Commit dab067b

Browse files
committed
update readme
1 parent 1faf93c commit dab067b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ composer require cortexphp/json-repair
1919
```php
2020
use Cortex\JsonRepair\JsonRepair;
2121

22-
// Repair broken JSON (single quotes, unquoted keys, trailing comma, non-standard booleans)
22+
use function Cortex\JsonRepair\json_repair;
23+
use function Cortex\JsonRepair\json_repair_decode;
24+
25+
// Repair broken JSON (single quotes, unquoted keys, trailing comma)
2326
$broken = "{'name': 'John', age: 30, active: true,}";
2427
$repaired = (new JsonRepair($broken))->repair();
2528
// {"name": "John", "age": 30, "active": true}

0 commit comments

Comments
 (0)