<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 14, 2017 at 10:52 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>I think since it is header-only that we would not need to mangle it, but rather install it inside the smtk include tree (e.g., include/smtk/thirdparty/<wbr>nlohmann_json) so that others can use exactly the version SMTK is compiled with. We can define a macro (yes!) for nlohmann's include path so that it is possible to use an external version or third party version:</div><div><br></div></div></blockquote><div>Not a lover for MACRO:( I vote for a tarball in superbuild or a submodule of SMTK.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>#include "smtk/Options.h"</div><div>#include SMTK_NLOHMANN_JSON_H</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>    David</div></font></span><div><div class="h5"><div><br>On Sep 14, 2017, at 10:44, Bob Obara <<a href="mailto:bob.obara@kitware.com" target="_blank">bob.obara@kitware.com</a>> wrote:<br><br></div><blockquote type="cite"><div>I definitely like the nlohmann version better - did we determine if we need to mangle it?  <div><br></div><div>So should it and pugiXML be moved into the superbuild in the near future as external projects?</div><div><br></div><div>Bob</div><div><br><div><span style="text-align:-webkit-auto"><br></span></div><div><span style="text-align:-webkit-auto">Robert M. O'Bara, MEng.</span><div><div style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>Assistant Director of Scientific Computing<br><br>Kitware Inc.<br>28 Corporate Drive<br>Suite 101<br>Clifton Park, NY 12065<br><br>Phone: <a href="tel:(518)%20881-4931" value="+15188814931" target="_blank">(518) 881- 4931</a></div><div><br></div></div><br class="m_1346144913264093536Apple-interchange-newline"><br class="m_1346144913264093536Apple-interchange-newline">
</div>
<br><div><blockquote type="cite"><div>On Sep 13, 2017, at 5:37 PMEDT, David Thompson <<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>> wrote:</div><br class="m_1346144913264093536Apple-interchange-newline"><div><div>Hi all,<br><br>I've looked a little more into jsoncpp and nlohmann_json. Attached is my experiment with syntax and getting UUIDs and arrays of UUIDs serialized. nlohmann does not require calls to converter functions nor does it even require a converter... UUIDs just worked (however, we probably want a converter as its default behavior writes UUIDs as JSON arrays of unsigned integers).<br><br>I continue to like nlohmann and dislike jsoncpp in terms of terseness and legibility of the resulting code. The one thing I dislike about nlohmann is that the repo seems to contain super-huge test files, making it slow to clone.<br><br>Attached are example programs for each library that do the same thing (create JSON data including UUIDs). I have not tried parsing/dumping large objects.<br><br><span class="m_1346144913264093536Apple-tab-span" style="white-space:pre-wrap">      </span>David<br><br><br><span id="m_1346144913264093536cid:C08336A6-5EC2-4137-A093-B373CA5683FC@kitware.com"><json.tar.gz></span></div></div></blockquote></div><br></div></div></div></blockquote></div></div></div><br>______________________________<wbr>_________________<br>
Smtk-developers mailing list<br>
<a href="mailto:Smtk-developers@smtk.org">Smtk-developers@smtk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/smtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/smtk-<wbr>developers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Best regards<div>Haocheng</div><div><br></div><div>Haocheng LIU</div><div><span style="color:rgb(0,0,0);font-size:12.8px">Kitware, Inc.</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">R&D Engineer</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">21 Corporate Drive</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Clifton Park, NY 12065-8662</span><br style="color:rgb(0,0,0);font-size:12.8px"><span style="color:rgb(0,0,0);font-size:12.8px">Phone: </span><a href="tel:(518)%20881-4421" value="+15188814443" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">518-881-4421</a><br></div></div></div></div></div>
</div></div>