Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
taris opened this issue Mar 24, 2015 · 0 comments

Comments

@taris
Copy link

taris commented Mar 24, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant