Created
June 11, 2013 14:36
-
-
Save JavierCane/5757337 to your computer and use it in GitHub Desktop.
parse attribute into hashmap
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
private static HashMap<String, String> getAttribute( JSONObject attributesJson ) | |
{ | |
HashMap<String, String> attribute = new HashMap<String, String>(); | |
try | |
{ | |
attribute.put( "key", attributesJson.getString( "key" ) ); | |
attribute.put( "value", attributesJson.getString( "value" ) ); | |
} | |
catch ( JSONException e ) | |
{ | |
e.printStackTrace(); | |
} | |
return attribute; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment