-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when nesting #82
Comments
Hi. This incorrect and intended behaviour. <%
' ...
Set oJson2 = new jsonObject
oJson2.DefaultPropertyName = "prop2"
oJson2.LoadRecordset AdoRS
oJson.Add "prop2" oJson2("prop2")
%> |
Sorry. I misunderstood what you said. Thanks. |
Thanks for the reply. |
When using 3.4, OK Variable uses an Automation type not supported in VBScript: 'TypeName' /api/inc/jsonObject.class.asp, línea 518 In 3.4.1 works, but in 3.4.2, fails!! Variable uses an Automation type not supported in VBScript: 'TypeName' /zsp2/api/inc/jsonObject.class.asp, línea 522 Both lines, 518 and 522 are: from the add method. Hope it helps! |
Hi again. With 3.4.1, everything works. I had some problems due to my data, but they are now fixed from errores (mainly, due to " in strings, changed to `). With 3.4.2, the error appears in line 522 (as said in the previous message). A property already exists with the name: [[JSONroot]]. /zsp2/api/inc/jsonObject.class.asp, línea 495 As I told you, during my tests, I had this error 'A property already exists ...' because of the data, but now, everything is fixed, so no need to get that error. I was able to fix the error on version 3.8.1. In version 3.4.1, this same line is: "add i_defaultPropertyName, arr" I guess that when you modify this line was because of something, but if in 3.8.1 i change to previous version 3.4.1, everything works! |
Hi. Thank you very much for your effort reporting and testing this. |
Hi, Please feel free to test that out. Best, |
Hi all.
I have been using the aspJSON 3.3.1 and I have no problem by using this:
Dim oJSON
set oJSON = new JSONobject
SqlSelect = "select * from table1"
Set AdoRS = GetRecordSet(sCadenaConexion, SqlSelect)
oJSON.defaultPropertyName = "prop1"
oJSON.LoadRecordset AdoRS
I want the result to include several queries as a response, each one being change the name using defaultPropertyName
I have tried aspJSON 3.8.1, but I got this error:
AdoRS is a recordset object that fit perfect with LoadRecordset.
When using 3.3.1, the result is correct.
When using 3.8.1, the error raise.
The text was updated successfully, but these errors were encountered: