OriginalPostID-255970
JSON Array Behavior.docx
Discussion posts and replies are publicly visible
I'm not sure if this is a bug, or just more "nuance" managing types.
There's no explicit type casting on the array. There could easily be an "a" in the array in place of the 3.
Appian is being flexible returning the "any type" type here even though the array is all numbers:
typename( typeof( a!fromJson( a!toJson( { "jsonArray": { 1, 4, 5, 6 } } ) ).jsonArray ) )
and here when the array contains mixed types.
typename( typeof( a!fromJson( a!toJson( { "jsonArray": { "oh well", 4, 5, 6 } } ) ).jsonArray ) )
The explicit type casting looks like a good practice for this use case.