awk like tool for JSON and other inputs