Support json output in --format flag of docker inspect

Docker-DCO-1.1-Signed-off-by: ILYA Khlopotov <ilya.khlopotov@gmail.com> (github: khia)
Merge pull request #4385 from khia/json_format

Support json output in --format flag of docker inspect