json data to #define code