We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b56c4 commit f7cee49Copy full SHA for f7cee49
README.md
@@ -14,7 +14,13 @@ Usage
14
use JsonBrowser\JsonBrowser;
15
16
// returns a new JsonBrowser, or throws an exception if the JSON syntax is invalid
17
-$browser = new JsonBrowser($json);
+$browser = new JsonBrowser();
18
+
19
+// load document as JSON string
20
+$browser->loadJSON($json);
21
22
+// attach to existing document
23
+$browser->attach($document);
24
25
// check for child node
26
$childExists = $browser->childExists('childName');
0 commit comments