Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multi-level JSON with objects and arrays #76

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

kapow
Copy link

@kapow kapow commented Feb 10, 2023

🔀 Pull Request

What does this PR do?

I am using JSONPath with a large and complex JSON file. PHP's json_decode creates a PHP variable that has both arrays and, at lower levels, objects.

I ran into errors creating new JSONPath object. It would be fine with arrays but would return an error when it encountered nested objects. I think this issue is coming up now because of the stricter enforcement of data types in PHP 8.

I made a few minor changes and everything has been working well for the past few months.

Test Plan

The code has been running without error on a busy site since mid-December.

Related PRs and Issues

(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)

@SoftCreatR SoftCreatR merged commit 3028241 into SoftCreatR:main Feb 10, 2023
@SoftCreatR
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants