Skip to content

Commit

Permalink
fix: Handle boolean values on JSON bin value
Browse files Browse the repository at this point in the history
  • Loading branch information
a-spiker committed Sep 16, 2024
1 parent a538109 commit 89ce1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ json_to_val(json_t* j)
return (as_val*)json_number_to_integer(j);
if (json_is_real(j))
return (as_val*)as_double_new((double)json_real_value(j));
if (json_is_boolean(j))
return (as_val*)as_boolean_new(json_boolean_value(j));
return (as_val*) NULL; //&as_nil;
}

Expand Down

0 comments on commit 89ce1db

Please sign in to comment.