Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Take only first value from list of returned values #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ronlut
Copy link

@ronlut ronlut commented Feb 15, 2018

Added the ability to choose an item from a list to query by index.
In addition, introduce fix of partial rule matching.
(thanks @allenyllee)
Fixes #67.

Added the ability to choose a an item of a list to query by index
@ronlut ronlut changed the title Update ImportJSON.gs Take only first value from list of returned values Feb 21, 2018
@egyptianbman
Copy link

Awesome addition. One thing it's missing though is being able to handle nested arrays, i.e.:

{
  "something": [
    [123, 321],
    [234, 432]
  ]
}

You can target the outer array via /something[0] but you can't target either value of the inner array. /something[0][1] yields 123,321.

@kbeck1
Copy link

kbeck1 commented Mar 29, 2019

Can this pull request be merged?

@jrub
Copy link

jrub commented May 6, 2019

Can this pull request be merged?

yes please 🙏

@dmikester1
Copy link

dmikester1 commented Jul 28, 2019

So if this is not merged yet, we can't yet use this ability right? What is the holdup? Can I just grab the code for the PR and use that in my script?

Nevermind, that last question, I grabbed the code, popped it into my script in my Google Sheet and it is working fantastically! Thanks @ronlut!

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

Successfully merging this pull request may close these issues.

Take only first value from list of returned values
5 participants