Bug Tracker

Opened 7 years ago

Closed 6 years ago

#4663 closed bug (invalid)

$.getJSON can't process data with crlf

Reported by: dolphin Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


$.getJSON will fail when data is {"a":"123



I replaced

if ( type == "json" )

data = windoweval?("(" + data + ")");


if ( type == "json" )

data = json_parse(data);http://www.JSON.org/json_parse.js

It worked well.

Change History (1)

comment:1 Changed 6 years ago by dmethvin

  • Resolution set to invalid
  • Status changed from new to closed

That is not valid json. Any control characters inside a string must be escaped.


Note: See TracTickets for help on using tickets.