[IGN-16005]How to get len of DotReferenceJythonMap?

Whenever you have a binding that is a dictionary what really is is a DotReferenceJythonMap.

In the documentation says that you can get it using __len__() but I'm not able to do it.

Any idea on how to do this?

My final objective is to do this: len(dict) > 0.

Have you tried casting the value given to the transform script as a dict? e.g. len(dict(value)) > 0

Huh, it should support len but doesn't, that's just a bug in our implementation.

len(dict.keys()) would work.

2 Likes