Skip to content

Commit 1b74ecf

Browse files
author
Greg Bowler
committed
Tweak readme
1 parent 5b9fee9 commit 1b74ecf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Structured, type-safe, immutable JSON objects.
22
==============================================
33

4-
Built on top of [PHP.Gt/DataObject][dataobject], this repository adds JSON-specific compatibility. The main usage will be the `JsonObjectBuilder` class that can be used to build a type of `JsonObject` from a JSON string or decoded JSON object (from `json_decode`).
4+
Built on top of [PHP.Gt/DataObject][dataobject], this repository adds JSON-specific compatibility. The main usage will be via the `JsonObjectBuilder` class that can be used to build a type of `JsonObject` from a JSON string or decoded JSON object (from `json_decode`).
55

66
The purpose of using these classes to represent decoded JSON data is to provide a type-safe, immutable interface to the enclosed data.
77

@@ -44,9 +44,9 @@ Usage example
4444
-------------
4545

4646
```php
47-
use \Gt\Json\JsonObjectBuilder;
47+
use Gt\Json\JsonObjectBuilder;
4848
use Gt\Json\JsonKvpObject;
49-
use \Gt\Json\JsonPrimitive\JsonPrimitive;
49+
use Gt\Json\JsonPrimitive\JsonPrimitive;
5050

5151
$response = file_get_contents("https://example.com/details.json");
5252
$builder = new JsonObjectBuilder();

0 commit comments

Comments
 (0)