check if params is valid json