| 171 | static const char tab_arr[TAB_SIZE_LIMIT+1]= " "; |
| 172 | |
| 173 | static int append_tab(String *js, int depth, int tab_size) |
| 174 | { |
| 175 | if (js->append('\n')) |
| 176 | return 1; |
| 177 | for (int i=0; i<depth; i++) |
| 178 | { |
| 179 | if (js->append(tab_arr, tab_size)) |
| 180 | return 1; |
| 181 | } |
| 182 | return 0; |
| 183 | } |
| 184 | |
| 185 | int json_path_parts_compare(const MEM_ROOT_DYNAMIC_ARRAY *a_arr, |
| 186 | const json_path_step_t *a, |