From be19b9d0aebc05d65b77fb6a74dfa3d37e84a827 Mon Sep 17 00:00:00 2001 From: Suhel Chakraborty Date: Sun, 9 Oct 2022 12:33:21 +0530 Subject: [PATCH] Fixed example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 62e61ab..9097732 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,7 @@ int main() { typed(json_element) element = result_unwrap(json_element)(&element_result); // Fetch the "hello" key value - result(json_element) hello_element_result = json_object_find(&element, "hello"); + result(json_element) hello_element_result = json_object_find(&element.value.as_object, "hello"); if(result_is_err(json_element)(&hello_element_result)) { typed(json_error) error = result_unwrap_err(json_element)(&hello_element_result); fprintf(stderr, "Error getting element \"hello\": %s\n", json_error_to_string(error));