   CREATE or REPLACE FUNCTION 
   json_int(data json, key text) RETURNS INT AS $$
 
-    var ret = JSON.parse(data); 
+    var ret = data;
     var keys = key.split('.')
     var len = keys.length;
     

  CREATE or REPLACE FUNCTION 
  json_bool(data json, key text) RETURNS BOOLEAN AS $$

    var ret = JSON.parse(data); 
    var keys = key.split('.')
    var len = keys.length;
    

  CREATE or REPLACE FUNCTION 
  json_string(data json, key text) RETURNS TEXT AS $$

    var ret = data;
    var keys = key.split('.')
    var len = keys.length;
    
