My polybar installation didn’t work after last update:
polybar: error while loading shared libraries: libjsoncpp.so.24
So the fastest way to rebuild polybar for me was just cloning the github repo and running: ./build.sh
The script asks some questions about deps which you can answer without any issue yes for every one and at the end got all working again, I wish it would be a simpler way but even I had issues following the building steps in the github repo and reinstalling using pacman won’t work as the current package is linked to the old libjsoncpp lib.