Skip to content

Add possibility not only to return a key-value array, but an array of objects with each key and its value as values #7

@taris

Description

@taris

I am currently parsing url-queries that result into the known key-value-objects:

Parsed: ?ab=hello&cd=world&ef=123

{
   "ab": "hello",
   "cd": "world",
   "ef": "123"
}

As an additional feature, i suggest to provide a flag, which lets "kv" return an array of objects like:

[
  {
    "key": "ab",
    "value": "hello"
  },
  {
    "key": "cd",
    "value": "world"
  },
  {
    "key": "ef",
    "value": "123"
  },
]

That way it would be possible to write elasticsearch queries for nested types.

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