<div dir="auto">I guess a better way might be to add the serializer imports to json2all.js and then use the import variables in the list of serializer data in convertJSON() call instead of strings, avoiding eval(). Hmm! This is why I send so many emails (obviously).</div><div dir="auto"><br></div><div dir="auto">I’ll try to get these in soon, but tasks are piling up!</div><div dir="auto"><br></div><div dir="auto">Thanks for feedback!</div><div dir="auto"><br></div><div dir="auto">John </div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jun 25, 2025 at 3:29 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Note that with imports, instead of require() in ECMAScript, you will need to add your new Serializer (.js) import to X3DJSONLD/src/main/node/convertJSON.js in addition to naming it in <div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none">X3DJSONLD/src/main/node/json2all.js</span></div><div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none"><br></span></div><div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none">Apologies. Let me know if there’s another way. My way uses eval to resolve the string to an imported variable. I tried dynamic imports without success:(.</span></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none"></span></div></div><div dir="auto"><div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none"><br></span></div><div dir="auto"><span style="color:rgb(0,0,0);font-family:'-apple-system',sans-serif;font-size:19px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;display:inline!important;float:none">John </span></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 24, 2025 at 3:18 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am documenting the subject line here.<div dir="auto"><br></div><div dir="auto">To convert X3D JSON to DOM to Bindings in X3DJSONLD:</div><div dir="auto"><br></div><div dir="auto">$ cd X3DJSONLD/src/main</div><div dir="auto"><br></div><div dir="auto">Place X3D JSON files in ./data/. The name should end in .json, and not include “new.”</div><div dir="auto"><br></div><div dir="auto">$ cd ./shell/.</div><div dir="auto"><br></div><div dir="auto">Edit classpath file to taste.</div><div dir="auto"><br></div><div dir="auto">Convert files:</div><div dir="auto"><br></div><div dir="auto">$ bash runjson.sh</div><div dir="auto"><br></div><div dir="auto">Look at log for errors.</div><div dir="auto"><br></div><div dir="auto">$ cd ../.</div><div dir="auto"><br></div><div dir="auto">Look in */net/coderextreme/data/. for your output.</div><div dir="auto"><br></div><div dir="auto">Edit ./node/json2all.js to add or configure serializers converting from DOM.</div><div dir="auto"><br></div><div dir="auto">Recent Serializers include ./node/PythonSerializerX3DJSAIL.js and ./node/GuraSerializer.js</div><div dir="auto"><br></div><div dir="auto">John</div>
</blockquote></div></div>
</blockquote></div></div>