build: generator: Add json code and more questions

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>