SPARK-884: Add unit test to validate Spark JSON output

This unit test simply validates that the outputs of
the JsonProtocol methods are syntactically valid JSON.