Created
September 24, 2018 19:20
-
-
Save codeamt/7032ad7e76c95ca074250a7da3894dc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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