var obj = (typeof value === 'string') ? JSON.parse(value) : value;
for (var key in obj) {
obj[key].name = key;
}
return JSON.stringify(obj);
FoldFold allExpandExpand allAre you sure you want to delete this link?Are you sure you want to delete this tag?
The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community