# Scripting function takes a dict however the received datatype is DotReferenceJythonMap

**URL:** <https://forum.inductiveautomation.com/t/scripting-function-takes-a-dict-however-the-received-datatype-is-dotreferencejythonmap/80410>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [October 12, 2023, 7:20pm UTC](https://forum.inductiveautomation.com/t/scripting-function-takes-a-dict-however-the-received-datatype-is-dotreferencejythonmap/80410 "2023-10-12T19:20:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [October 12, 2023, 7:27pm UTC](https://forum.inductiveautomation.com/t/scripting-function-takes-a-dict-however-the-received-datatype-is-dotreferencejythonmap/80410/3 "2023-10-12T19:27:43Z")

</div>

The JythonMap behaves the same as a dict for most purposes.

[https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.32/com/inductiveautomation/perspective/gateway/script/DotReferenceJythonMap.html](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.32/com/inductiveautomation/perspective/gateway/script/DotReferenceJythonMap.html)

If you look at the reference above, you'll see it supports all the usual methods of a python `dict`, including `keys()`, `items()`, etc.

On closer inspection, there is also a `toDict()` method that presumably will explicitly return the `dict` inside the wrapper. However, you should never really need it in everyday usage.

See also the discussion here:

> [@Test variable type](https://forum.inductiveautomation.com/t/test-variable-type/67326):
>
> Hello, Is it possible to check if a variable is : dict or DotReferenceJythonMap list or JsonifiableArrayList ? Thanks

EDIT: updated javadocs reference to latest version (as of this posting)

---

_[View the full topic](https://forum.inductiveautomation.com/t/scripting-function-takes-a-dict-however-the-received-datatype-is-dotreferencejythonmap/80410)._
