JSON result incorrect
See original GitHub issueAre you requesting a feature, reporting a bug or ask a question?
Bug
What is the current behavior?
Final JSON results contains wrong answers.
{
"q1": "6",
"q2": {
"Row1": "Column1",
"Row2": "Column1",
"Row3": "Column3",
"Row4": "Column3",
"Row5": "Column3",
"Row6": "Column3"
},
"q3": "q7item2",
"q4": [
"other",
"q4item1",
"q4item2",
"q4item3",
"q7item3"
],
"q4-Comment": "Other 1",
"q7": [
"other",
"q7item3",
"q7item2",
"q7item1",
"q9item3"
],
"q7-Comment": "Other",
"q8": "other",
"q9": "q9item3",
"q8-Comment": "other 3"
}
In above results Q4 contains Q7 answer and Q7 contains Q9 answer.
What is the expected behavior?
Final output should be
{
"q1": "6",
"q2": {
"Row1": "Column1",
"Row2": "Column1",
"Row3": "Column3",
"Row4": "Column3",
"Row5": "Column3",
"Row6": "Column3"
},
"q3": "q7item2",
"q4": [
"other",
"q4item1",
"q4item2",
"q4item3",
],
"q4-Comment": "Other 1",
"q7": [
"other",
"q7item3",
"q7item2",
"q7item1",
],
"q7-Comment": "Other",
"q8": "other",
"q9": "q9item3",
"q8-Comment": "other 3"
}
How would you reproduce the current behavior (if this is a bug)?
Just navigate in the below demo and check the final result with the actual selected answers.
Provide the test code and the tested page URL (if applicable)
Tested page URL: Demo
Specify your
- browser: Google Chrome
- browser version: Version 59.0.3071.115 (Official Build) (64-bit)
- surveyjs platform (angular or react or jquery or knockout or vue): jQuery
- surveyjs version: 0.12.19
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Json result displayed wrong value when shown
The value of the "no" property is returned wrongly as 35797506102858584 when json result displayed. Ex:https://jsoneditoronline.org/?id= ...
Read more >How to Fix the Invalid JSON Error in WordPress?
How To Fix 'Updating Failed. The Response is Not a Valid JSON Response' Error · Check the URL Settings of the WordPress Site...
Read more >I've received an "Invalid JSON string" error. What do I do?
An invalid JSON error can occur for many reasons. The most common issue is usually associated with a file upload attempt, and can...
Read more >How to Fix The Invalid JSON Error in WordPress ...
How to Fix The Invalid JSON Error in WordPress (Beginner's Guide) · 1. Check WordPress URLs in Settings · 2. Fix WordPress Permalink...
Read more >1. Warning: Invalid JSON response
A warning from DataTables stating "Invalid JSON response" is one of the most common errors that can occur with DataTables. Fortunately it is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nithinM, hello! This is the bug in our examples, we should add
willUnmount
method in it. Like in this example: https://surveyjs.io/Examples/Library/?id=custom-widget-icheck&platform=jQueryI’ve updated your plnkr: https://plnkr.co/edit/NWOJvBIVxqnva7NfXpKO?p=preview, could you check it please?
In fact we are working on version 1.0. And you could just import widget and use it. So same bugs will abandone.
Hi, @dmitrykurmanov ! Yeah perfect it’s working now. Thank you so much for get back with the solution for this. Cool so waiting for the new release!!!