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

Illegal unquoted char in JSON response #28

Open
eric-taix opened this issue Sep 19, 2011 · 5 comments
Open

Illegal unquoted char in JSON response #28

eric-taix opened this issue Sep 19, 2011 · 5 comments

Comments

@eric-taix
Copy link
Member

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
Copy link
Member

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

@cheleb
Copy link
Member

cheleb commented Sep 19, 2011

+1

On Mon, Sep 19, 2011 at 4:18 PM, Eric Taix <
[email protected]>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:
#28

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

  • Pablo Picasso -

@eric-taix
Copy link
Member Author

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

@eric-taix eric-taix reopened this Sep 19, 2011
@eric-taix
Copy link
Member Author

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/

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

No branches or pull requests

3 participants