This repository has been archived on 2026-07-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2025-04-13 21:48:15 +03:00

31 lines
417 B
C
Executable File

#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
void
task2()
{
cJSON *item;
char *text;
item = cJSON_Parse("{"
"\"name\" : \"Ivanov\","
"\"age\" : 25"
"}");
text = cJSON_PrintUnformatted(item);
puts(text);
free(text);
cJSON_Delete(item);
}
int
main(int argc, char **argv)
{
task2();
return 0;
}