Skip to content

Question about json parse #35

Description

@ljz2009y

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions