Defect #8421

REST API may produce invalid json

Added by Ilya Kulakov about 1 year ago. Updated about 1 year ago.

Status:New Start date:2011-05-21
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:REST API
Target version:-
Affected version:1.1.3 Resolution:

Description

Redmine MUST produce valid json. E.g. look at the contents of http://www.redmine.org/issues/8031.json. Especially to the description field:

\"\\377\u00f4\u00ff\u00fd\" 

It contains
06
character between \u00fd and \", so if you look at this line in hex editor you'll see
"\\377\u00f4\u00ff\u00fd^F\" 

This character is not allowed by JSON standard.


Related issues

related to Feature #4796: Rails 3 support Closed 2010-02-10

History

#1 Updated by Etienne Massip about 1 year ago

JSON encoding is made by Rails ; JSON encoder code has changed lightly with 3.0, dunno if it'll solve this issue, though.

Also available in: Atom PDF