<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>> <span style="font-size: 12pt;">Thus, it makes sense to move (1) to Trunk, deprecate (3), and finally take a look at how to benefit from (2).</span></p>
<div><br>
</div>
<div>+1</div>
<div>Maybe keep the public selectors on WebUtils and forward them to the "new" JSON protocol for compatibility reasons?</div>
<div><br>
</div>
<div>My comments on STON were not meant as an objection, just as a "related idea", so please keep going! :-)</div>
<div>(Another related idea is to build a YAML converter analogously for JSON. If we did this, I wonder they would belong in the same package and if yes, whether this package would still be named JSON. But that's still all dreams of the future ... :D)</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
<b>Gesendet:</b> Dienstag, 6. Juli 2021 16:23:55<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> Re: [squeak-dev] JSON into Trunk? =)</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi Christoph,
<div><br>
</div>
<div>good points. I would like to unify all three efforts of JSON parsing:</div>
<div>(1) <a href="http://www.squeaksource.com/JSON" title="Klicken, um in einem neuen Fenster oder Tab zu öffnen
http://www.squeaksource.com/JSON" style="font-size: 10pt;font-family: Arial, Helvetica, sans-serif">http://www.squeaksource.com/JSON</a></div>
<div>(2) <span style="font-size: 10pt"><a href="http://squeaksource.com/PostgresV3/JSON-ul.56.mcz" style="font-size: 10pt">http://squeaksource.com/PostgresV3/JSON-ul.56.mcz</a></span></div>
<div>(3) <span style="font-size: 10pt">WebUtils class >> #json{De,En}code:</span></div>
<div><span style="font-size: 10pt"><br>
</span></div>
<div><span style="font-size: 10pt">I think that (1) is usually loaded in projects using JSON.</span></div>
<div>I think that (2) has valuable fixes and extensions for (1).<span style="font-size: 10pt"><br>
</span></div>
<div><span style="font-size: 10pt">I think that (3) is hardly ever used. In Trunk, only in the WebClientServerTests.</span></div>
<div><br>
</div>
<div>Thus, it makes sense to move (1) to Trunk, deprecate (3), and finally take a look at how to benefit from (2).</div>
<div><br>
</div>
<div>Hmm... I wonder whether my perspective on and usage of JSON is correct. Yes, it is strongly connected to Web content. Yet, it is also a quite compact form to generate into a local file. Squeak's #storeString seems more bloated sometimes. Looking at WebUtils,
 most of my past scenarios would have worked using those, too. I suppose. Especially that recent one with TravisCI. :-)</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
<div class="mb_sig"></div>
<blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
<p style="color: #AAAAAA; margin-top: 10px;">Am 06.07.2021 15:32:33 schrieb Thiede, Christoph <christoph.thiede@student.hpi.uni-potsdam.de>:</p>
<div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt;color: #000000;font-family: Calibri,Helvetica,sans-serif">
<p>Hi Marcel, hi all,</p>
<p><br>
</p>
<p>I'm also a frequent user of JSON. I especially use it often for scripting tasks where it would be very helpful to have it in the Trunk by default.</p>
<p><br>
</p>
<p>However, I would also like to mention that we already have a small but working JSON implementation in WebUtils. See WebUtils class >> #json{De,En}code:. I'm not aware of all its limitations, but apparently, it does not have proper support for Unicode strings
 (\u...). Apart from that, it decodes to regular Dictionaries whereas JSON has JsonObjects with dynamic forwarding instead. Probably it would be a good idea to join these two concepts if we integrate JSON into the Trunk.</p>
<p><br>
</p>
<p>Also, consider Levente's fork of JSON, which we probably would like to merge as well: <a href="http://forum.world.st/I-d-like-to-contribute-to-the-JSON-project-tp5121353p5121357.html" class="x_OWAAutoLink" id="LPlnk445793">http://forum.world.st/I-d-like-to-contribute-to-the-JSON-project-tp5121353p5121357.html</a></p>
<div><br>
</div>
<div>---</div>
<br>
<div>As another whataboutistic comment, what is about STON? Currently, it resists as a
<a href="https://github.com/squeak-smalltalk/squeak-ston/issues/5" class="x_OWAAutoLink">
kind of hidden</a> fork on GitHub, and for some reason, smalltalkCI holds a hard copy of it. Could we argue to add it to the Trunk as well?
<span>😊</span></div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif;color: #000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Fabio Niephaus <lists@fniephaus.com><br>
<b>Gesendet:</b> Dienstag, 6. Juli 2021 15:17:12<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] JSON into Trunk? =)</span>
<div> </div>
</div>
</div>
<span style="font-size: 10pt"><span style="font-size: 10pt">
<div class="PlainText">+1<br>
<br>
On Tue, Jul 6, 2021 at 3:13 PM Tobias Pape <Das.Linux@gmx.de> wrote:<br>
><br>
> YES<br>
><br>
> > On 6. Jul 2021, at 15:06, Marcel Taeumel <marcel.taeumel@hpi.de> wrote:<br>
> ><br>
> > Hi all!<br>
> ><br>
> > I think it would be nice to have JSON as part of Squeak Trunk. This would make parsing the content of web requests easier. Recently, I got lucky to find the last-modified date in the HTTP header for the public TravisCI badge. But usually, one would have
 to query the official endpoint/API to then get XML or JSON content.<br>
> ><br>
> > <a href="http://www.squeaksource.com/JSON">http://www.squeaksource.com/JSON</a><br>
> ><br>
> > What do you think? The project is<br>
> > + Self-contained<br>
> > + Stable since 2016<br>
> > + Not that big<br>
> > o Adding the extension #jsonWriteOn: to the system<br>
> ><br>
> > Latest maintainers seem to be:<br>
> > Hannes Hirzel (hjh, 2010)<br>
> > Levente Uzonyi (ul, 2010)<br>
> > Tony Garnock-Jones (tonyg, 2016)<br>
> > Fabio Niephaus (FabN, 2016)<br>
> ><br>
> > Best,<br>
> > Marcel<br>
> ><br>
><br>
><br>
><br>
<br>
</div>
</span></span></div>
</blockquote>
</div>
</div>
</body>
</html>