classic-ui: added json_encode to custum var json output #4390

refs: #4390
Merge branch 'feature/classic-cv-with-excludes-4390' into next

fixes: #4390