Skip to content

Commit 1558ea8

Browse files
authored
Update _examples.md
1 parent 14f0230 commit 1558ea8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/03.reference/02.tags/property/_examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ writeOutput(jsonString); // Output: {"foo":"hello","bar":42}
2626
myCfc = new component accessors="true" {
2727
property name="foo" type="string";
2828
property name="bar" type="numeric";
29-
property name="arr" type="numeric" default="#[1,2,3]#";
30-
property name="st" type="numeric" default="#{lucee:"rocks"}#";
29+
property name="arr" type="array" default="#[1,2,3]#";
30+
property name="st" type="struct" default="#{lucee:"rocks"}#";
3131
foo = "hello";
3232
bar = 42;
3333
};
3434
dump(myCfc); // See CFC object with properties
3535
jsonString = serializeJson(var=myCfc, compact=false);
3636
writeOutput(jsonString); // Output: {"foo":"hello","bar":42}
37-
```
37+
```

0 commit comments

Comments
 (0)