From 29f97864e1b0ef142249898b39332b26a5fb4906 Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 10 Jul 2023 22:40:05 -0500 Subject: add: json file function implemented --- src/json.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/json.h (limited to 'src/json.h') diff --git a/src/json.h b/src/json.h new file mode 100644 index 0000000..23cab9a --- /dev/null +++ b/src/json.h @@ -0,0 +1,16 @@ +#ifndef __JSON +#define __JSON +#include +#include +#include +#include + +typedef struct { + float price; + float area; + float latitude; + float longitude; +} HouseItem; + +void json_read(const char *filepath, HouseItem *out); +#endif -- cgit v1.2.3-70-g09d2