making sure keys for json are strings