I have a json object
"a1":
{
"b1": "val1",
"b2": "function() {return null}",
"c1": "{}"
}
This function needs to be passed to run a rethink-db query. This function a1.b1 needs to be passed
r.db(database).table(table).indexCreate(indexname, a1.b2, a1.c1)
When I run the query I get the error msg: 'Expected type FUNCTION but found DATUM:\n"function() {return null;}"',
Please suggest a fix for this.