Support json output in --format flag of docker inspect