From 868141e8ff02e74316590779fe05ae28bf9cfc50 Mon Sep 17 00:00:00 2001 From: NickBusey Date: Thu, 11 Dec 2014 12:05:17 -0800 Subject: [PATCH] Fixing incorrect code example. ContainsKey example call was to contains() which does not exist. --- Decoding JSON.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Decoding JSON.md b/Decoding JSON.md index 3df75ca..3db7162 100644 --- a/Decoding JSON.md +++ b/Decoding JSON.md @@ -126,7 +126,7 @@ If the actual value doesn't match the target type, a default value will be retur If you want to know if some value is present, call `containsKey()`: - if (root.contains("extra")) + if (root.containsKey("extra")) { // root["extra"] is valid }