I suggest you ...

Allow JSON responses to be referenced by index, an addition to key

It would be awesome if we could reference JSON responses by index number, as well as key. It would permit more powerful and flexible interactions with amazing services like wit.ai. We've had a lovely email exchange, so I'll just paste my example use case here for clarity:

I'm attempting to get the "confidence" of the first "entity", regardless of what that "entity" is. In this example, the first (and only) "entity" is "intent". As I stated, my understanding is that I would use @extra.entities.0.0.confidence, but this doesn't work. @extra.entities.intent.0.confidence does, but that's much less useful.

[
{
"confidence": null,
"intent": "default_intent",
"_text": "add me",
"entities": {
"intent": [
{
"confidence": 0.97704285727029,
"value": "textlist_add"
}
]
}
}
]

Also, this is from a service I'm sure you're familiar with, wit.ai. It's an amazing way to extend the power of TextIt; rather than requiring exact particular responses, it uses machine language processing to guess* what action the user is asking for, even if they don't word it perfectly. This makes everything much more user-friendly and natural; I desperately want it to work with TextIt.

1 vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Brett shared this idea  ·   ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base