Santhosh Thomas

1 follower

A design-minded front-end software engineer focused on building beautiful interfaces & experiences. . My goal is to always build applications that are scalable and efficient under the hood.

Blog Author Picture

Subscribe to my newsletter and never miss my upcoming articles

Convert Keys in Json to Snake Case

Jan 18, 20221 min read 2 views

import re def convert_to_snakecase(original_dict): transformed_dict = {} array_items = [] if not isinstance(original_dict, list): for k in original_dict.keys(): value = re.sub(r'(?<!^)(?=[A-Z])', '_', k).lower() ...

Free Illustrations for your project
Billie | The Most Best Way to Create a Professional Invoice
Gitlab CI/CD for multiple environment