Skip to main content
first
Source Link
peak
  • 119.1k
  • 21
  • 185
  • 218

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

If you want a fully exhaustive search for all JSON objects with .name, then you could use .. or walk/1. If you want at most one such object, you could use first/1, which might be a good idea anyway as it might speed things up.

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

If you want a fully exhaustive search for all JSON objects with .name, then you could use .. or walk/1.

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

If you want a fully exhaustive search for all JSON objects with .name, then you could use .. or walk/1. If you want at most one such object, you could use first/1, which might be a good idea anyway as it might speed things up.

mention .. and walk/1
Source Link
peak
  • 119.1k
  • 21
  • 185
  • 218

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

If you want a fully exhaustive search for all JSON objects with .name, then you could use .. or walk/1.

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}

If you want a fully exhaustive search for all JSON objects with .name, then you could use .. or walk/1.

Source Link
peak
  • 119.1k
  • 21
  • 185
  • 218

One of many possibilities:

(.personData // .) |  {nombre: .name, apellido: .last, puesto: .position}