Support json output in --format flag of docker inspect

Docker-DCO-1.1-Signed-off-by: ILYA Khlopotov <ilya.khlopotov@gmail.com> (github: khia)
add warning for deprecatd flags

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Merge pull request #4428 from vieux/add_warning_flags

add warning for deprecatd flags
Merge pull request #4385 from khia/json_format

Support json output in --format flag of docker inspect