Previous change broke handling of json with camelcase.
This CL changes to call toLower() iff arguments are SCREAMING_SNAKE_CASE.
Also add simple test to prevent regression.
@mholt any chance of getting this merged? As-is, https://mholt.github.io/json-to-go/ lowercases all characters in field names except for the first character because of the bug this fixes.
Previous change broke handling of json with camelcase. This CL changes to call toLower() iff arguments are SCREAMING_SNAKE_CASE. Also add simple test to prevent regression.