Article - CS263581

The JS function JSON.stringify does not appear to work in Arbortext Advanced Print Publisher

Modified: 22-Aug-2017   


Applies To

  • PTC Arbortext Advanced Print Publisher 10.0

Description

  • The following does not change the string values to "g" as it is supposed to:
var foo = {foundation: 'Mozilla', model: 'box', week: 45, transport: 'car', month: 7};
result = JSON.stringify(foo, function(key,value){  
  if(typeof value === 'string') return "g"
  return value
});  
formatting.write("xxx " + result)
This is a printer-friendly version of Article 263581 and may be out of date. For the latest version click CS263581