| 80 | } |
| 81 | |
| 82 | hb_value_t * hb_value_json(const char *json) |
| 83 | { |
| 84 | json_error_t error; |
| 85 | hb_value_t *val = json_loads(json, 0, &error); |
| 86 | if (val == NULL) |
| 87 | { |
| 88 | hb_error("hb_value_json: Failed, error %s", error.text); |
| 89 | } |
| 90 | return val; |
| 91 | } |
| 92 | |
| 93 | hb_value_t * hb_value_read_json(const char *path) |
| 94 | { |
no test coverage detected