1 var REST = library.REST.REST(); 2 (function main() { 3 var aProperties = context.toNative(context.properties); 4 delete aProperties["<type>"]; 5 6 for (var aKey in aProperties) { 7 if (!aProperties[aKey]) { 8 continue; 9 } 10 if (aProperties[aKey].toLowerCase().trim() === "true") { 11 aProperties[aKey] = true; 12 } else if (aProperties[aKey].toLowerCase().trim() === "false") { 13 aProperties[aKey] = false; 14 } 15 } 16 17 return REST.formatResponse(aProperties); 18 })(); 19