There are three classes of data accessors: readers, selectors and writers.
- Readers implement
\Remorhaz\JSON\Data\ReaderInterfacethat provides basic read-only access to associated data: type checks, export, etc. - Selectors extend readers and implement
\Remorhaz\JSON\Data\SelectorInterfacethat allows to switch data by moving internal cursor step by step deeper into JSON structures. - Writers extend selectors and implement
\Remorhaz\JSON\Data\WriterInterfacethat allows modification of currently selected data.
You can use Reference/Reader, Reference/Selector and Reference/Writer classes that work with native PHP structures by reference or implement your own accessors.
- Due to the restriction of PHP objects in versions before 7.1, it is impossible to access "" (empty string) property by reference, so it is disabled in
Reference/*accessors.