Instead of passing the entire state object of Feature.jsm (which included a couple Map objects), I now just pass the exact quantities (integers or strings) I need. These string:string or string:int value pairs are JSONable, which eliminate the error message that was being observed.
It should also give us a performance boost! Since we're passing a much smaller amount of data between frame script and JSM.
Instead of passing the entire
state
object ofFeature.jsm
(which included a coupleMap
objects), I now just pass the exact quantities (integers or strings) I need. These string:string or string:int value pairs are JSONable, which eliminate the error message that was being observed.It should also give us a performance boost! Since we're passing a much smaller amount of data between frame script and JSM.