Adding error for broken json docs

Change-Id: I71f2d4590da4a66bd6b3834f69d1f3d296e6de3e