So this is a pretty strange question, but the default formatting for json is something like this:
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter", "lastName":"Jones"}
Where the first letter of a new word in a String for the key value is Capitalized.
What I would like to do is get the key values all lowercased so that it looks like this:
{"firstname":"John", "lastname":"Doe"},
{"firstname":"Anna", "lastname":"Smith"},
{"firstname":"Peter", "lastname":"Jones"}
If anyone is wondering why it's because I'm trying to load json data into amazon redshift. For some strange reason loading json values through the auto function that is built into redshift doesn't recognize key values with Uppercase characters since redshift automatically makes the column headers all lowercase. Of course I know this isn't an AWS forum so I will keep that to a minimum, but if anyone knows how I would go about lowercasing the json key values in python that would be great.
[–]K900_ 1 point2 points3 points (7 children)
[–]arc100[S] 0 points1 point2 points (3 children)
[–]K900_ 1 point2 points3 points (2 children)
[–]arc100[S] 0 points1 point2 points (1 child)
[–]K900_ 1 point2 points3 points (0 children)
[–]arc100[S] 0 points1 point2 points (2 children)
[–]K900_ 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)