For a detailed explanation of the syntax used - JSONpath - and the differences in uBlock Origin's implementation of it, see the multiline comment at https://github.com/gorhill/uBlock/blob/master/src/js/jsonpath.js#L23

#uBlockOrigin #JSONPath

uBlock/src/js/jsonpath.js at master · gorhill/uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean. - gorhill/uBlock

GitHub
AWS Step Functions で JSONata を使用するデータ変換方法と具体例の紹介 - Qiita

はじめにAWS Step Functionsは、サーバレスでワークフローの構築を容易にするサービスです。Step Functionsがリリースされた当初は、主に複数のAWS Lambdaの関数を…

Qiita

TIL: There is a compliance test suite for #JSONPath https://github.com/jsonpath-standard/jsonpath-compliance-test-suite

Is anybody up for maintaining a #ruby gem to implement this? I can give feedback, but I don't think I am up for the task.

GitHub - jsonpath-standard/jsonpath-compliance-test-suite: A Compliance Test Suite for the JSONPath Internet Draft

A Compliance Test Suite for the JSONPath Internet Draft - jsonpath-standard/jsonpath-compliance-test-suite

GitHub
betterer-json

Automated JSON editing tool. Latest version: 1.0.0, last published: 5 minutes ago. Start using betterer-json in your project by running `npm i betterer-json`. There are no other projects in the npm registry using betterer-json.

npm

I'm writing a simple script to make small adjustments in #json documents with #jsonPath and #javaScript .

Well it was simple until I wanted to add #yaml support and process a document with ISO formatted date-time strings.

How to force any YAML package to quote date-time strings without quoting all strings?

#programming #nodeJs

RFC 9535: JSONPath: Query Expressions for JSON

Le langage #JSONPath sert à désigner une partie d'un document #JSON. Il est donc utile pour, par exemple, extraire des valeurs qui nous intéressent.

#RFC

https://www.bortzmeyer.org/9535.html

Blog Stéphane Bortzmeyer: RFC 9535: JSONPath: Query Expressions for JSON

Just started a new project, `betterer-json`. It's like JSON Patch, except it's javascript.

You write your script match like a JSON Patch - use JSONPath to select values to process, each value is sent to a callback, and its result is put back in the JSON document.

This example changes '"format": "datetime"' to '"format": "date-time"' across json document

```
replace('$..format', value => {
if(value === 'datetime')
return 'date-time';
return value
})
```

https://github.com/python-lapidary/betterer-json

#typeScript #javaScript #JSon #JSonPath #JSonPatch #programming

GitHub - python-lapidary/betterer-json: Programmatically replace fragments of JSON while keeping the overall structure

Programmatically replace fragments of JSON while keeping the overall structure - python-lapidary/betterer-json

GitHub

Also, stop memorising the vimrc setup and #kubectl command completion. These are now standard in the environment.

Be prepared for a horrible test environment. It's like a VNC web client connected to the Linux desktop with a terminal and Firefox. Copy and paste between the browser and local to the VM is janky.

It looks like can install extra software I was able to install gron, but I did this via apt. So anything that requires a curl shell install script may not work. I noticed that kubernetes.io search still listed community topics but did not let you click on them.

You're expected to know #JSONPath / #jq. If you're mind goes blank (remember you won't be able to search StackOverflow), get the format of the output from kubectl correct and then use grep (the old ways are the best).

If you do use #Kubernetes but in a managed environment (EKS, AKS, etc) you'll want to drill the labs on installing/maintaining clusters, etcd maintenance and deployments (including network policies, ingresses, etc). Same applies if you're used to an automated deployment CD environment like #ArgoCD. Remember "--dry-run=client --output yaml" is your friend.

Finally, be aware there are multiple cluster environments in the exam (questions will tell you which context to use), so if you know how to mod your PS1 prompt make sure it includes the output from "kubectl config current-context". Alternatively, create an alias 😉

Do you have any useful tips? Share them in the replies?

Links 🔗
https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/
https://github.com/tomnomnom/gron

New JSONPath Feature: SelectLocated

New in the jsonpath Go package and Playground: “Located” results that pair selected values with normalized paths to their locations.

❖ Just a Theory

I made a new thing. It's called JSONTree.golangmpiles multiple JSONPath queries into a single tree query that selects multiple paths at once, and preserves the input data structure in its output.

📣Blog post: https://justatheory.com/2024/12/jsontree/

🛝Playground: https://theory.github.io/jsontree/

📚 Docs: https://github.com/theory/sqljson/blob/main/README.md

🐿️ Go package: https://pkg.go.dev/github.com/theory/jsontree

#JSONPath #JSONTree #golang

JSONTree Module and Playground

I’m happy to announce the release of the JSONTree Go module and Wasm-powered in-browser playground.

❖ Just a Theory