Skip to content
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

Allow to parse with json error on setting an object to an array property #7254

Closed
andrewtelnov opened this issue Oct 30, 2023 · 0 comments · Fixed by #7255
Closed

Allow to parse with json error on setting an object to an array property #7254

andrewtelnov opened this issue Oct 30, 2023 · 0 comments · Fixed by #7255
Assignees
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

The following JSON will produce error after Survey Model could not recover:

{
  elements: { type: "text", name: "q1" }
}

The correct JSON should be:

{
  elements: [{ type: "text", name: "q1" }]
}

However, JSON parser failed to parse it in Creator JSON Editor and show an error. The JavaScript error raised and JSON Editor doesn't show any reason of an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants