You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks, @rrameshkumar76 but it's just acknowledged with a weird workaround. I have no clue why the API built this way which seems very inconsistent to me. It just causes pain for all new developers who waste time debugging and looking it up. I suggest we should have a consistent return type.
As explained here, the [] syntax was added to allow array behavior instead of the default sequence behavior. I think it's a bit reductive to call it a workaround, even though it's technically true. There's history and complexity to the issue and it would be problematic to just change default behavior. There would be blowback. I suggest some kind of compilation flag, like regex has, to enable the array behavior everywhere.
Please check the difference between https://try.jsonata.org/Rf8UI_TMy and https://try.jsonata.org/0L_oYffzT
The text was updated successfully, but these errors were encountered: