Fixed bash and json formatting