Skip to content

Feature Request: convertion JSON <-> PHP array #248

Description

@geoffroyp

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions