verify function params are valid json