def METHOD_NAME(self):
    """Test that JSON can be decoded and formatted exactly as expected"""
    import json
    sel = SimpleModule(
        "v.db.select",
        format="json",
        map=self.invect,
        where="cat<={cat}".format(cat=self.cat),
    )
    sel.run()
    try:
        json.loads(sel.outputs.stdout)
    except ValueError:
        self.fail(msg="No JSON object could be decoded:\n" + sel.outputs.stdout)
    self.assertLooksLike(reference=out_json, actual=sel.outputs.stdout)