<p dir="ltr">It would be good to have an additional implementation to compare output.  Perhaps another vendor could also come out with a prototype expander.  It would not be my choice to implement prototypes this way.  I would want a back pointer to the parent node.  But once the tree is built,  you can output it.  JSON does put some limitations on what design is chosen.  I would probably choose something like JOLT if I were to start the project again.</p>
<p dir="ltr">John</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Jul 2, 2016 9:51 PM, "John Carlson" <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr"><br></p>
<p dir="ltr">> Am also optimistic that we might be able to create an XSLT stylesheet that accomplishes the identical task of converting ProtoInstance nodes into expanded nodes.</p>
<p dir="ltr">You are welcome to reference my code.  I'd like to point out that a JSON to XML converter would be more general purpose (could be used by more projects to implement the JSON standard)--you might want to work on that first.  I do have a JSON to XML converter, but it's targeted at loading, but there is a standalone version for verification of XML to JSON conversion.  You could use JOLT perhaps for declarative JSON transformations.</p>
<p dir="ltr">Thanks to your stylesheet, I did not have to write the prototype expander using XML API.</p>
<p dir="ltr">If you do create something with XSLT, make sure it can be easily used in a web page.</p>
<p dir="ltr">> ... so, seems pretty promising.  A few more rocks and shoals to navigate but appears that we can get there from here.  What do you think?</p>
<p dir="ltr">I will see if the Switch brings up any more issues.</p>
</blockquote></div></div>