Skip to content

Instantly share code, notes, and snippets.

@codeamt
Created September 24, 2018 19:20
Show Gist options
  • Save codeamt/7032ad7e76c95ca074250a7da3894dc4 to your computer and use it in GitHub Desktop.
Save codeamt/7032ad7e76c95ca074250a7da3894dc4 to your computer and use it in GitHub Desktop.
import com.udacity.sandwichclub.model.Sandwich;
import org.json.JSONObject;
public class JsonUtils {
public static Sandwich parseSandwichJson(String json) {
try {
/* Start By Making a Base JSON Object out of String param for Serializing */
JSONObject base = new JSONObject(json);
} catch (JSONException e) {
/* Print Any Errors */
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment