Working Json + code gen