fixed validation of json

fixed validation of json