Skip to content
Advertisement

How to display accented words JSON on bash script with Python

I’m trying to display arrays with accent in the result but only arrays that don’t have accent are showing.

Complete themoviedb API: https://api.themoviedb.org/3/movie/566525?api_key=b2f8880475c888056b6207067fbaa197&language=pt-BR

JavaScript

Shell code:

JavaScript

result:

JavaScript

Advertisement

Answer

Here is a cleaner way to do this in jq. This solution also scales better (you don’t need to know the number of elements in your array)

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement