mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* 7z, 7za, 7zr: update Indonesian translation * common: imperative mood on Indonesian translation * linux, osx, windows: imperative mood on Indonesian translation * common, linux: add Indonesian translation * powershell, pwsh: add Indonesian translation * common: add Indonesian translation * gcc: use standard file path template * Update pages.id/common/gcc.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/gcc.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/7za.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/gcc.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages.id/common/7za.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update 7za.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update gcc.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-commit: update Indonesian translation --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
20 lines
694 B
Markdown
20 lines
694 B
Markdown
# ajson
|
|
|
|
> Jalankan ekspresi pencarian JSONPath terhadap objek-objek JSON.
|
|
> Informasi lebih lanjut: <https://github.com/spyzhov/ajson>.
|
|
|
|
- Baca file JSON dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
|
|
|
|
`ajson '{{$..json[?(@.path)]}}' {{jalan/menuju/file.json}}`
|
|
|
|
- Baca JSON dari `stdin` dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
|
|
|
|
`cat {{jalan/menuju/file.json}} | ajson '{{$..json[?(@.path)]}}'`
|
|
|
|
- Baca JSON dari sebuah URL dan jalankan ekpresi JSONPath untuk mencari data di dalamnya:
|
|
|
|
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
|
|
|
|
- Baca file JSON sederhana dan hitung nilai dari ekspresi JSONPath:
|
|
|
|
`echo '{{3}}' | ajson '{{2 * pi * $}}'`
|