#JSON with Typescript

11 messages · Page 1 of 1 (latest)

tender plover
#

How do I define that this: vv

[{"name":string, "commands": [string]}]

can contain any amount of strings instead of only one?

cursive beacon
#

same with your outer object

tender plover
#

wdym with outer object?

cursive beacon
#
 vvvvvvv-- the "outer object"
[{ ... }]
^- this-^
tender plover
#

ooh oki

#

so that behind the rest

#

behind { ... }

cursive beacon
#

i mean it should probably be {}[] not [{}]

tender plover
#

yeah you're right

#

i changed that and now it works thanks a lot