JSON/q

A JSON-based data access specification

Arguments

[
  [
    "zero", 
    "one", 
    "two", 
    "three", 
    "four", 
    "five", 
    "six", 
    "seven", 
    "eight", 
    "nine"
  ]
]

Query

{
  "where": "s[0] == \"o\"", 
  "as": "s", 
  "from": "args[0]", 
  "select": "first(s)"
}

Results

"one"