| 73 | ++json |
| 74 | |
| 75 | static const char *skip_string(const char *json) |
| 76 | { |
| 77 | if (json == NULL) { |
| 78 | fatal("json is NULL"); |
| 79 | return NULL; |
| 80 | } |
| 81 | |
| 82 | while (*++json) { |
| 83 | if (*json == '"') { |
| 84 | ++json; |
| 85 | return json; |
| 86 | } else if (*json == '\\') { |
| 87 | ++json; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | fatal("Bad string"); |
| 92 | return NULL; |
| 93 | } |
| 94 | |
| 95 | static const char *skip_comments(const char *json) |
| 96 | { |