Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

JSONiq

< >

JSONiq is a query language created in 2011.

#946on PLDB 13Years Old 153Repos
Homepage · Wikipedia

JSONiq is a query and functional programming language that is designed to declaratively query and transform collections of hierarchical and heterogeneous data in format of JSON, XML, as well as unstructured, textual data. JSONiq is an open specification published under the Creative Commons Attribution-ShareAlike 3.0 license. It is based on the XQuery language, with which it shares the same core expressions and operations on atomic types. Read more on Wikipedia...


Example from hello-world:
"Hello World"
Example 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 from Wikipedia:
for $p in collection("persons") return <person> <firstName>{$p("firstName")}</firstName> <lastName>{$p("lastName")}</lastName> <age>{$p("age")}</age> </person>

Language features

Feature Supported Example Token
Strings ✓ "Hello world" "

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0