#include #include #include int main() { int scope = 0; bool in_string = false; bool escape_next = false; char c; while (read(STDIN_FILENO, &c, 1) > 0) { putchar(c); if (c == '{' || c == '[') { scope++; putchar('\n'); } else if (c == '}' || c == ']') { scope--; } } return 0; }