Validate json

Change-Id: Idf01a21c1edccf49854b4c0ed15aefd868e570d2