conversionJSON, refactoring