Livestatus: Add 'cv_is_json' and encode CV arrays/dicts as json

refs #7560