<div dir="ltr"><div>There is <b>Json class >> renderInstanceVariables:of:on:</b>. It generates a Dictionary. It still relies on Json class >> render, but may be enough for what you are trying to do. <br></div><div><br></div><div>Example:</div><div><b>Json renderInstanceVariables: Smalltalk class instVarNames of: Smalltalk on: Transcript.</b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 17 Jun 2024 at 01:27, Mariano Montone via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
El 16/6/24 a las 20:25, Mark Volkmann escribió:<br>
> The WebClient package can generate JSON from a Dictionary.<br>
> Does Cuis provide a method that generates a Dictionary from the <br>
> instance properties of an arbitrary Object?<br>
> I looked for a method in Object or Dictionary that does that <br>
> conversion and couldn't find one.<br>
<br>
I believe there's no such method. Try to implement it yourself. Look at <br>
#allInstVarNames and #instVarNamed: .<br>
<br>
If you fail, let me know and I will give it a try.<br>
<br>
<br>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div>