Closed smukkekim closed 6 years ago
Hi. I'll take a look into this until Sunday. Thank you.
Hi. I've tested this string with correct escaping in the latest version and it works as expected. Are you running an older version of this script?
<!--#include file="jsonObject.class.asp" -->
<%
jsonString = "{""weekly"":{""active"":true,""count"":1,""weekdays"":[0,1]},""monthly"":{""active"":false,""day"":{""active"":false,""dayCount"":1,""monthCount"":1},""weekday"":{""active"":false,""index"":1,""weekday"":0,""monthCount"":1}}}"
set jsonObj = new JSONobject
set outputObj = jsonObj.parse(jsonString)
%>
<h3>Parse Output</h3>
<pre><%= outputObj.Serialize() %></pre>
Hi! I was using version 3.7 at the time of writing I've updated to the new version 3.8.1, and it seems to work now. Thanks!
When I run the parse method on the following:
Everything from "monthly" and on becomes a third element in the "weekdays"-array, rather than a second object on the same level as "weekly"