validate json

use a json scheme and validate output against it.