osc: fix sending deep object (stringify them)
This commit is contained in:
parent
20805fdcd0
commit
42760822a5
1 changed files with 4 additions and 2 deletions
|
|
@ -37,9 +37,11 @@ var parseArg = function(arg,precision){
|
|||
case 'boolean':
|
||||
return {type: arg ? 'T' : 'F', value: arg}
|
||||
case 'object':
|
||||
return {type: parseType(arg.type), value: arg.value}
|
||||
if (arg.type) {
|
||||
return {type: parseType(arg.type), value: arg.value}
|
||||
}
|
||||
default:
|
||||
return {type: 's', value:String(arg)}
|
||||
return {type: 's', value:JSON.stringify(arg)}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue