send::
msg ctx.set (csv="1,2,3,4,5
6,7,8,9,10"
)
send::
msg ctx.csvToJson (payload, separator=","
, hasHeaders:Boolean)
expect:: (payload is Array
)
expect:: (payload[="0"=0] is Json
)
send::
msg ctx.set (csv ="h1,h2,h3,h4,h51,2,3,4,56,7,8,9"
...)
send::
msg ctx.csvToJson (payload, separator=","
, hasHeaders:Boolean)
expect:: (payload is Array
)
expect:: (payload[="0"=0] is Json
)
expect:: (payload[="1"=1][:String="h2"] is 7
)
You need to log in to post a comment!