fix issues in param handling in json api