mirror of https://github.com/CrimsonTome/tldr.git
ajson: add Spanish translation (#9691)
parent
d97d1ac436
commit
8c4bc7848f
|
@ -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…
Reference in New Issue