We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39f52cd commit 904a33fCopy full SHA for 904a33f
README.md
@@ -184,7 +184,7 @@ int main() {
184
typed(json_element) element = result_unwrap(json_element)(&element_result);
185
186
// Fetch the "hello" key value
187
- 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");
188
if(result_is_err(json_element)(&hello_element_result)) {
189
typed(json_error) error = result_unwrap_err(json_element)(&hello_element_result);
190
fprintf(stderr, "Error getting element \"hello\": %s\n", json_error_to_string(error));
0 commit comments