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

PHP => JSON utility is too strict #35

Open
3 tasks
JStruk opened this issue Oct 25, 2023 · 0 comments
Open
3 tasks

PHP => JSON utility is too strict #35

JStruk opened this issue Oct 25, 2023 · 0 comments

Comments

@JStruk
Copy link
Owner

JStruk commented Oct 25, 2023

The PHP to JSON utility needs to be updated to be more lenient on the php array provided.

  • Allow strings with single quotes ['foo' => 'bar'] to { "foo": "bar" }
  • Allow semicolons (can be removed before converting) ['foo' => 'bar']; to { "foo": "bar" }
  • Interpret each value as a string? i.e We should be able to convert ['foo' => $this->bar] to { foo: '$this->bar' }
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

No branches or pull requests

1 participant