mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 21:15:32 +02:00
ajson: add Spanish translation (#9691)
This commit is contained in:
parent
d97d1ac436
commit
8c4bc7848f
1 changed files with 20 additions and 0 deletions
20
pages.es/common/ajson.md
Normal file
20
pages.es/common/ajson.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ajson
|
||||
|
||||
> Ejecuta JSONPath en objetos JSON.
|
||||
> Más información: <https://github.com/spyzhov/ajson>.
|
||||
|
||||
- Lee JSON de un archivo y ejecuta una expresión JSONPath especificada:
|
||||
|
||||
`ajson '{{$..json[?(@.path)]}}' {{ruta/al/archivo.json}}`
|
||||
|
||||
- Lee JSON de `stdin` y ejecuta una expresión JSONPath especificada:
|
||||
|
||||
`cat {{ruta/al/archivo.json}} | ajson '{{$..json[?(@.path)]}}'`
|
||||
|
||||
- Lee JSON de una URL y evalúa una expresión JSONPath especificada:
|
||||
|
||||
`ajson '{{avg($..price)}}' '{{https://ejemplo.com/api/}}'`
|
||||
|
||||
- Lee un simple cadena JSON y calcula un valor:
|
||||
|
||||
`echo '{{3}}' | ajson '{{2 * pi * $}}'`
|
Loading…
Add table
Reference in a new issue