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

JSONObject in JSONObject #22

Closed
Feecochette opened this issue Jul 12, 2011 · 1 comment
Closed

JSONObject in JSONObject #22

Feecochette opened this issue Jul 12, 2011 · 1 comment

Comments

@Feecochette
Copy link

Hello,

I try to use JSONObject like it :

JSONObject tmp = new JSONObject ();
tmp.put("name","feecochette");
tmp.put("data",tmp);

It makes a infinitive loop, that's anormal ?

@douglascrockford
Copy link
Contributor

Yes. JSON structures must be non-cyclical.

BGehrels pushed a commit to BGehrels/JSON-java that referenced this issue Apr 29, 2020
sample tests for XML.toJSONObject(Reader)
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

2 participants