The json test data serialized in hex can be quite large and would be parsed by the compiler each time the header file is included, causing OOM even with make -j 1.
Slightly decrease the memory usage by compiling the json to hex separately from the tests and do it at most once (regardless of how often the header is included).