Skip to content

JSON QL #71

Open
Open
@jbee

Description

@jbee

Maybe use https://docs.jsonata.org/ as inspiration.

Sketch

Recap: JsonPath has 3 important notations:

  • .property (plain/unescaped)
  • {property} ("escaped")
  • [index]

Generally any query should be marked by using round brackets: (...)

The main function is to collect matching paths and with that matching nodes.

Stream<JsonValue> query(JsonQL);

Path Selectors

  • ([...]) is a JsonArray + Predicate : JsonArray function to select elements based on a predicate
  • ([*]) select all
  • ({...}) is a JsonObject + Predicate : JsonObject function to select properties based on a predicate
  • ({*}) select all

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions