Add key to config and make JSON valid