StringManipulation icon indicating copy to clipboard operation
StringManipulation copied to clipboard

Feature Request: convertion JSON <-> PHP array

Open geoffroyp opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Greetings and congratilation for this awesome PHPstorm plugin. However, I feel there's a very useful feature missing: being able to convert a JSON to an associative PHP array in one click.

Describe the solution you'd like When selecting a JSON in a file, we could use String Manipulation to automatically convert "{ }" to "[ ]" and ":" to "=>". Also it would (could?) take care of de-escaping character if escaping is not needed anymore Then we could do it the other way, from a PHP array to a JSON by replacing "[ ]" by "{ }" on associative arrays (but keeping [ ] on normal arrays), as well as replacing "=>" by ":", and escaping characters that need to be.

Thanks!

geoffroyp avatar Jan 30 '25 08:01 geoffroyp