jsoninfo: simplify output_error by using an abuf