<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to JSON Utilities ENUM to STRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e2d3e1a76/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e2d3e1a76/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/9e2d3e1a76/</id><updated>2024-12-09T18:24:10.533000Z</updated><subtitle>Recent posts to JSON Utilities ENUM to STRING</subtitle><entry><title>JSON Utilities ENUM to STRING</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/9e2d3e1a76/?limit=25#458c" rel="alternate"/><published>2024-12-09T18:24:10.533000Z</published><updated>2024-12-09T18:24:10.533000Z</updated><author><name>amy123</name><uri>https://forge.codesys.com/u/amy123/</uri></author><id>https://forge.codesys.com17a31eb235b2b4784cf169819a7f035d4e7ef045</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;br/&gt;
Is it possible to get the string returned from the ENUM JSONType? I read that with regular enumerations you can add '{attribute 'to_string'}' and access it. However, this is from the compiled library, so I can not add that attribute. &lt;/p&gt;
&lt;p&gt;When I try to use TO_STRING(JSONType) it returns the integer as a string. &lt;br/&gt;
Ex. jsonType :=TO_STRING(pJSONData^._aJSONData&lt;span&gt;[i]&lt;/span&gt;.eType); gives '8' instead of NONE&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>