Bugfix in generator when determining if jsonDecoding is necessary