PHPackages                             kaasplootz/object-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kaasplootz/object-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kaasplootz/object-parser
========================

Parse objects to JSON and back, with just two functions.

1.2.1(4y ago)2261BSD-3-ClausePHP

Since Jun 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/kaasplootz/objectParser)[ Packagist](https://packagist.org/packages/kaasplootz/object-parser)[ RSS](/packages/kaasplootz-object-parser/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (8)DependenciesVersions (8)Used By (1)

objectParser
============

[](#objectparser)

[![GitHub stars](https://camo.githubusercontent.com/701decb753622ed537218cde08343399af14ff747348584d4b07a33abf769c78/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6b616173706c6f6f747a2f6f626a6563745061727365723f7374796c653d666c61742d737175617265)](https://github.com/kaasplootz/objectParser/stargazers) [![GitHub issues](https://camo.githubusercontent.com/9a1c43f8da0f2a67c5d2024186c83e37ed7eaff003ce0d91f355416d0dd0151c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6b616173706c6f6f747a2f6f626a6563745061727365723f7374796c653d666c61742d737175617265)](https://github.com/kaasplootz/objectParser/issues) [![GitHub license](https://camo.githubusercontent.com/29acbec730fc20d30f02ae225dee62f94ac31eb549e3962c15b4a8657ac6266b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b616173706c6f6f747a2f6f626a6563745061727365723f7374796c653d666c61742d737175617265)](https://github.com/kaasplootz/objectParser) [![Packagist Version](https://camo.githubusercontent.com/90dac68efafd950d1e0b5802c735331ab0a6ef98e01f3dbc51fe15858ed94047/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616173706c6f6f747a2f6f626a6563745061727365723f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/90dac68efafd950d1e0b5802c735331ab0a6ef98e01f3dbc51fe15858ed94047/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b616173706c6f6f747a2f6f626a6563745061727365723f7374796c653d666c61742d737175617265)

Example
-------

[](#example)

PHP8 object to JSON:

```
