Skip to content

How can i get a result without named variable #5

Description

@MemoRodMx

Hi, i'm trying to get a serialized result to ommit the name or variable on result.

How can i get the same result like using the $this->set('_serialize', 'varname'); in this plugin?

i want to get a result like this

{ "status": "OK", "result": { "falanu": [ "dhikanu", "tamburo" ] } }

instead of:

{ "status":"OK","result": { "bar": { "falanu": [ "dhikanu", "tamburo" ] } } }

without putting the name variable what i'm using in the response

thank you

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions