UNPKG

@told.club/sdk-rn

Version:
22 lines (21 loc) 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.convertToJSONString = convertToJSONString; function convertToJSONString(dictionary) { try { if (Object.keys(dictionary).length === 0) { return '[]'; } const jsonArray = Object.entries(dictionary).map(([key, value]) => ({ key, value })); return JSON.stringify(jsonArray); } catch (error) { console.error('Error: JSONSerialization issue:', error); return '[]'; } } //# sourceMappingURL=hiddenFields.js.map