I usually use javascript BSF Assertion . Since JSONs are javascript objects, you can try to evaluate the response in a try-catch block, and if it fails, you can explicitly ignore the previous SampleResult.
try { eval('var response = ' + prev.getResponseDataAsString()); } catch(e) { prev.setSuccessful(false); prev.setResponseMessage("Invalid response. Expected a valid JSON."); }
source share