Does anyone have any experience with `addCustomDat...
# advancedpdf
n
Does anyone have any experience with
addCustomDataSource
from the
N/render
module?
Copy code
.addCustomDataSource({
    format: render.DataSource.OBJECT,
    alias: "ITEMS",
    data: items
});
I'm trying to add an Object items and I keep getting the following error.
"UNSUPPORTED_DATA_FORMAT","message":"You have supplied an invalid value for data format: JSON: The content of elements must consist of well-formed character data or markup."
r
How does your
items
variable looks like
e
Try this…