- Drop support for PHP 5.3
- Adding json_encode options bitmask (#7)
- Allows minus character within property name (by jaimelopez)
- Bug fix in
.length
regex. - Minor code cleanup.
- Documentation now properly defines what a variable name is.
- Dependencies are now properly defined for older PHP versions.
- Bug fix when accessing an array with a negative index. It now behaves as expected.
- set now creates non-existent intermediate objects. (p.e. if quering '$.a' results in false, when setting '$.a.b' to a value '$.a' will be created as a result of this).
- Added custom Exception classes:
InvalidJsonException
is thrown when an invalid values is given to the JsonObject constructor.InvalidJsonPathException
is thrown when an invalid JSONPath is given.
- Added getJsonObjects to get child JsonObjects that reference the original JsonObject contents. This is also affected by smartGet.
- Added support for json objects with fields with names that are not valid javascript variable names.
- Fixed error in smart get when accessing a list of names or list of indices and only one existed in the object.
- Added smart get
- Added errors when invalid json type is passed to construct
- Efficiency improvements
- All tokens are constants
- Basic JsonPath functionality