JSONiq is an actively used query language created in 2011.

8Years Old 1,025Users 0Jobs

Example code from Linguist:

(: Query for returning one database entry :) 

import module namespace req = "http://www.28msec.com/modules/http-request";
import module namespace catalog = "http://guide.com/catalog";

variable $id := (req:param-values("id"), "London")[1];
variable $part := (req:param-values("part"), "main")[1];

catalog:get-data-by-key($id, $part)

Example code from Wikipedia:

for $p in collection("persons")
 return 
   <person>
     <firstName>{$p("firstName")}</firstName>
     <lastName>{$p("lastName")}</lastName>
     <age>{$p("age")}</age>
   </person>
Edit

Last updated February 11th, 2019