All tools / PHP tools / PHP Array to JSON
PHP Array to JSON
Parses literal PHP arrays without executing PHP code.
Limited implementation: this tool is not a complete standards-compliant implementation.
About PHP Array to JSON
Parses literal PHP arrays without executing PHP code.
Practical example
['name' => 'Ada']
{"name":"Ada"}
Frequently asked questions
What does PHP Array to JSON do?
Parses literal PHP arrays without executing PHP code.
What input should I use?
Try the example above first. Replace the sample with your own data in the same format.
How to use PHP Array to JSON
Enter your input or upload a suitable file, set an option if needed, then select Run. Review the output before copying or downloading it.