Files
turso/core/json/json_path.pest
2025-01-10 11:50:43 +07:00

9 lines
342 B
Plaintext

negative_index_indicator = ${ "#-" }
array_offset = ${ ASCII_DIGIT+ }
array_locator = ${ "[" ~ negative_index_indicator? ~ array_offset ~ "]" }
relaxed_array_locator = ${ negative_index_indicator? ~ array_offset }
root = ${ "$" }
json_path_key = ${ identifier | string }
path = ${ SOI ~ root ~ (array_locator | "." ~ json_path_key)* ~ EOI }