Closed oprogfrogo closed 7 years ago
Using your package, how do I wrap an array so that this:
items: [ '1', '2', '3', '4' ]
becomes this:
<items type="array"> <item>1</item> <item>2</item> <item>3</item> <item>4</item> </items>
redacted....
@oprogfrogo The following object should produce the desired output
var obj = { items: { "@": { type: "array" }, "item": ["1", "2", "3", "4"] } }
Using your package, how do I wrap an array so that this:
items: [ '1', '2', '3', '4' ]
becomes this: