| 121 | } |
| 122 | |
| 123 | static const char *skip_spaces(const char *json) |
| 124 | { |
| 125 | if (json == NULL) { |
| 126 | fatal("json is NULL"); |
| 127 | return NULL; |
| 128 | } |
| 129 | |
| 130 | while (*json) { |
| 131 | if (*json == '/') { |
| 132 | json = skip_comments(json); |
| 133 | if (json == NULL) |
| 134 | return NULL; |
| 135 | } else if (isspace(*json) || *json == ',') { |
| 136 | ++json; |
| 137 | } else { |
| 138 | break; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | return json; |
| 143 | } |
| 144 | |
| 145 | static const char *skip_value(const char *json) |
| 146 | { |
no test coverage detected