Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13989 closed bug (invalid)

JSONP response yields Parse Error with leading array in JSON

Reported by: landontreed@… Owned by: landontreed@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.1
Keywords: Cc:
Blocked by: Blocking:

Description

The code that demonstrates this issue can be found at this jsfiddle.

What's going on here is that a simple ajax request is made with datatype as 'jsonp'. The datatype is necessary here because the response must be handled as jsonp in order to handle the response data correctly. However, when the data leads with an array structure --- which is valid JSON, according to http://jsonlint.com/ --- there appears to be a parse error (according to statusText), even though the response appears to be successful.

Change History (2)

comment:1 Changed 6 years ago by dmethvin

Owner: set to landontreed@…
Status: newpending

I'm not seeing an error. Is this only on a specific browser? Can you drop a screenshot somewhere to show what you see?

comment:2 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.