// (C) 2017 <>< Joshua Allen, Under MIT/x11 License. #define _GNU_SOURCE #include #include #include #include "json_helpers.h" void json_write_float_array(FILE* f, const char* tag, float* v, uint8_t count) { uint8_t i = 0; char * str1 = NULL; char * str2 = NULL; asprintf(&str1,"\"%s\":[", tag); for (i=0;i