Last active
August 29, 2015 14:13
-
-
Save TigerWolf/534fde243c5da6f5b947 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
keys = json.keys # org.json.JSONObject | |
array = [] | |
hash = {} | |
while keys.hasNext | |
array << keys.next | |
end | |
for i in array | |
value = json.getJSONObject(i) | |
hash[i] = value | |
end |
This file contains hidden or 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
while keys.hasNext | |
key = keys.next | |
value = json.getJSONObject(key) | |
hash[key] = value | |
end |
This file contains hidden or 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
E/AndroidRuntime( 5335): java.lang.OutOfMemoryError: PushLocalFrame | |
E/AndroidRuntime( 5335): at com.tigerwolf.beerclub.RequestListener.onResponse(Native Method) | |
E/AndroidRuntime( 5335): at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65) | |
E/AndroidRuntime( 5335): at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) | |
E/AndroidRuntime( 5335): at android.os.Handler.handleCallback(Handler.java:739) | |
E/AndroidRuntime( 5335): at android.os.Handler.dispatchMessage(Handler.java:95) | |
E/AndroidRuntime( 5335): at android.os.Looper.loop(Looper.java:135) | |
E/AndroidRuntime( 5335): at android.app.ActivityThread.main(ActivityThread.java:5221) | |
E/AndroidRuntime( 5335): at java.lang.reflect.Method.invoke(Native Method) | |
E/AndroidRuntime( 5335): at java.lang.reflect.Method.invoke(Method.java:372) | |
E/AndroidRuntime( 5335): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) | |
E/AndroidRuntime( 5335): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment