refactoring json param