-
Notifications
You must be signed in to change notification settings - Fork 731
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
weird format for get list of organizations #291
Comments
In most cases, the toString of object shouldn't be used for parsing. http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#toString()
Emphasis mine. |
Indeed, |
@kohsuke I don't expected this answer. I would like to how to parse that data? |
@marti1125 Rule of thumb, if a class has a You could hack something together with regex to match all between I do however want to refer to the first paragraph on this site:
Emphasis mine. |
GitHub gh = GitHub.connect("login", "token");
System.out.println(gh.getMyOrganizations());
How to I can parse this? =/
{mozillaperu=GHOrganization@29ba4338[login=mozillaperu,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/mozillaperu,id=1221419], qillu=GHOrganization@57d5872c[login=qillu,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/qillu,id=16871604], eknowit=GHOrganization@667a738[login=eknowit,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/eknowit,id=1102009], VulpesTools=GHOrganization@36f0f1be[login=VulpesTools,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/VulpesTools,id=8617634], GenerationOpen=GHOrganization@157632c9[login=GenerationOpen,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/GenerationOpen,id=4251591], mozillahispano=GHOrganization@6ee12bac[login=mozillahispano,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/mozillahispano,id=1511160], mozilla-appmaker=GHOrganization@55040f2f[login=mozilla-appmaker,location=,blog=,email=,name=,company=,followers=0,following=0,url=https://api.github.com/orgs/mozilla-appmaker,id=5852021]}
The text was updated successfully, but these errors were encountered: