jsonquerylang / jsonquerylang/jsonquery

Get root data via `$` or parent data via `..`

Open
#32 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
TypeScript
Stars
661
Forks
17
PR merge metrics
No merged PRs in 30d

Description

{
  "dep": 2,
  "gov": [
    {"name": "Chris", "age": 23, "city": "New York"},
    {"name": "Emily", "age": 19, "city": "Atlanta"},
    {"name": "Joe", "age": 32, "city": "New York"},
    {"name": "Kevin", "age": 19, "city": "Atlanta"},
    {"name": "Michelle", "age": 27, "city": "Los Angeles"},
    {"name": "Robert", "age": 45, "city": "Manhattan"},
    {"name": "Sarah", "age": 31, "city": "New York"}
  ]
}

如何通过JSON query转为

[
    {"name": "Chris", "age": 23, "city": "New York","dep": 2},
    {"name": "Emily", "age": 19, "city": "Atlanta","dep": 2},
    ......
  ]

形式

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named. Start by reading the repository's existing JSON query syntax and examples, then trace how nested object and array contexts are evaluated. Done means supporting root or parent references so each object in gov includes the top-level dep value, with coverage for the provided example.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.