Skip to content

Unified query language for various commonly used data representation formats (JSON, XML, YAML, etc.)

License

Notifications You must be signed in to change notification settings

natiiix/uniquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UniQuery

Unified query language for various commonly used data representation formats (JSON, XML, YAML, etc.)

Usage

Install Go and run go run cmd/uniquery/main.go -h to get information about available flags and their meaning.

Query Syntax

Please see query examples for rough query syntax explanation.

Data Format Support

Format Support Notes
JSON ✔️ Yes Works according to tests.
YAML ❓ Partial Not very well tested yet.
XML ❌ No More complicated than JSON and YAML.
CSV ❌ No Support is not currently planned.

Example (JSON)

Consider the following JSON file users.json, which maps real names to nicknames.

{
    "alice80": "Alice Yang",
    "bob12": "Bob Jacobs",
    "tank": "Charlie Peterson"
}
Query Result
empty query root element / whole data structure
alice80 "Alice Yang"
tank "Charlie Peterson"
* ["Alice Yang", "Bob Jacobs", "Charlie Peterson"]
alice80. root element (parent of alice80)

About

Unified query language for various commonly used data representation formats (JSON, XML, YAML, etc.)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages