I'd recommend this approach:
Store arguments and the body in your json:
{"function":{"arguments":"a,b,c","body":"return a*b+c;"}}
Now parse json and instantiate the function:
var f = new Function(function.arguments, function.body);
I think it's save
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…