Jug-Montpellier / play-Jug

Jug Site in PlayFramework
http://www.jug-montpellier.org
11 stars 4 forks source link

Illegal unquoted char in JSON response #28

Open eric-taix opened 13 years ago

eric-taix commented 13 years ago

When using reserved char (ie CTRL+CHAR - code 10), it throws a Jackson parser exception in JUGDroid.

Test to reproduce : Use initial-data.yml and with your browser type http://localhost:9000/api/members/all.json Arnaud's description has some line feeds which is not allowed except if it is escaped !

I wonder if use of "textile" is a good idea... Data must not have any view style if we want to be able to use them in different frontend. No ?

chamerling commented 13 years ago

+1 I had the same issue for JugApp. Wa have to find a way to have some raw and decorated data.

cheleb commented 13 years ago

+1

On Mon, Sep 19, 2011 at 4:18 PM, Eric Taix < reply@reply.github.com>wrote:

When using reserved char (ie CTRL+CHAR - code 10), it throws a Jackson parser exception in JUGDroid.

Test to reproduce : Use initial-data.yml and with your browser type http://localhost:9000/api/members/all.json Arnaud's description has some line feeds which is not allowed except if it is escaped !

I wonder if use of "textile" is a good idea... Data must not have any view style if we want to be able to use them in different frontend. No ?

Reply to this email directly or view it on GitHub: https://github.com/Jug-Montpellier/play-Jug/issues/28

"Computers are useless. They can only give you answers."

chamerling commented 13 years ago

Have a look to that:

eric-taix commented 13 years ago

Great ! It could be a good solution for both decorated and raw data.

eric-taix commented 12 years ago

This issue still exists : I had to remove all line feeds from the new b21 server data. Also double-quote must be escaped too ! The complete list of characters to encode can be found here : http://json.org/