try this..
<%@ page import="grails.converters.JSON" %>
<%
def test = com.domain.GeneralSetting.findAll()[0]
def json = test as JSON
def test1 = com.domain.GeneralSetting.findAll()[0].color
def json1 = test1 as JSON
%>
and js part like
console.debug('${json}');
console.debug('${json1}');
then
JSON.parse('${json}')
JSON.parse('${json1}')