key capitalization fixed
toJson() fixed