lib: json: Fix parsing of boolean values

Boolean values were being decoded using the descriptor type rather than
the value type.

Jira: ZEP-1607
Change-Id: I0c9324ee705af973ccf738e92785820c3a5fb692
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
diff --git a/lib/json/json.c b/lib/json/json.c
index f84c09f..512191d 100644
--- a/lib/json/json.c
+++ b/lib/json/json.c
@@ -449,9 +449,9 @@
 				 descr->n_elements, field, val);
 	case JSON_TOK_FALSE:
 	case JSON_TOK_TRUE: {
-		bool *value = field;
+		bool *v = field;
 
-		*value = descr->type == JSON_TOK_TRUE;
+		*v = value->type == JSON_TOK_TRUE;
 
 		return 0;
 	}