The default bug view has changed. See this FAQ.

[QueryTool] Some find JSON a nightmare to write

NEW
Unassigned

Status

Testing
ActiveData
2 years ago
2 years ago

People

(Reporter: ekyle, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
Despite my personal love how my fingers bounce on the quote-colon-quote (":") combination, I can see how many quotes make JOSN hard to write:  I attempted to write a query with my phone, but could not without the onset of carpal tunnel syndrome.

Mimic YAML, but not so complicated:

* new lines start a new list/object
* indentation used to control scope, like python
* double dot ".." can be used in place of colon ":" to indicate objects
* comma "," is used to indicate a list 
* strings only need quoting if they have dot or comma

> from..unittest
> edges..
>     build.branch,
> where..gt..build.date..{{today-2week}}

same as 

> {
>     "from":"unittest",
>     "edges":["build.branch"],
>     "where":{"gt":{"build.date":"{{today-2week}}"}}
> }

A dynamic as-you-type replacer should not be hard.
(Reporter)

Updated

2 years ago
Assignee: klahnakoski → nobody
You need to log in before you can comment on or make changes to this bug.