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

Question about json parse #35

Open
ljz2009y opened this issue May 5, 2014 · 0 comments
Open

Question about json parse #35

ljz2009y opened this issue May 5, 2014 · 0 comments

Comments

@ljz2009y
Copy link

ljz2009y commented May 5, 2014

thank for you share code,let me learn lot of android develop.

read your programe,I have a quesion:
public abstract class JSONBuilder {

protected String root;

public JSONBuilder(){
    root = "";
}

/**
 * Sets root of the JSON params, useful when building object in joins
 * 
 * @param root
 */
public void setRoot(String root){
    this.root = root;
}

public abstract T build(JSONObject jsonObject) throws JSONException;

}

album.setImage(jsonObject.getString(root+"image"));

why are your parsing image need to add "root"?

I think it is maybl not some help..

my English is not good .Please forgive me

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

1 participant