#JSONPath

iam-py-test :unverified:iampytest1@infosec.exchange
2025-03-29

For a detailed explanation of the syntax used - JSONpath - and the differences in uBlock Origin's implementation of it, see the multiline comment at github.com/gorhill/uBlock/blob

#uBlockOrigin #JSONPath

Andreas Hallerahx@ruby.social
2025-03-03

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

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.

2025-02-18

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

Stéphane Bortzmeyerbortzmeyer@mastodon.gougere.fr
2025-02-14

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

bortzmeyer.org/9535.html

2025-02-02

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
})
```

github.com/python-lapidary/bet

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

2025-01-06

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 🔗
udemy.com/course/certified-kub
github.com/tomnomnom/gron

David Wheelertheory@xoxo.zone
2024-12-22

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: justatheory.com/2024/12/jsontr

🛝Playground: theory.github.io/jsontree/

📚 Docs: github.com/theory/sqljson/blob

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

#JSONPath #JSONTree #golang

David Wheelertheory@xoxo.zone
2024-12-11

New package: JSONTree

Compiles multiple #JSONPath queries into a a single, path-preserving query.

🛝Browser-only Wasm Playground: theory.github.io/jsontree/

James Helfertysirspate
2024-11-25

Spent the weekend trying to transform some JSON data using a Python implementation of JSONPath, and now I think I hate JSONPath. The problem is I want to capture a value from a dictionary in an array, along with a value from the parent of the array. Even with jsonpath-ng, which allows me to get the parent, I can't seem to figure out how use parse() to return a container (list, dict, etc) containing just both values.

shevabamshevabam
2024-11-21

A relire : Des outils en ligne pour tester un JSONPath

blog.shevarezo.fr/post/2021/03

@ashphy @curiousconcept

2024-11-12

[Перевод] Автоматизированное тестирование API с использованием Python. Работа с JSON и JsonPath

JSON — один из самых распространённых форматов данных, используемых для передачи и получения данных в современных API. Важно глубоко понять его. В этой статье я даю краткий обзор: в основном это структура данных вида key: value, содержащая примитивные типы данных, такие как строка, логическое значение, числа, а также массивы. JSON очень похож на словарь в Python.

habr.com/ru/companies/otus/art

#jsonpath #json #python #автотестирование

2024-11-05

Just updated json-everything.net to make more space for the code editors. If you haven't been in a while, take a look!

#jsoneverything #dotnet #json #jsonschema #jsonpath

Great to see another JSONPath implementation conform to RFC 9535 and pass all the CTS tests!

github.com/Stillpoint-Software

#JSONPath

David Wheelertheory@xoxo.zone
2024-07-12

Is there a pattern/language that supports selecting multiple subsets of an entity? Like JSON Path but supports multiple sub-paths.

Example of the sort of thing I mean: gist.github.com/theory/0ba2297

#JSON #JSONPath #dataStructures #notAnInterview

David Wheelertheory@xoxo.zone
2024-07-08

I released a thing:

Introducing Go SQL/JSON Path and Playground

justatheory.com/2024/07/go-sql

#PostgreSQL #GoLang #JSONPath

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst