switching to JSON for dictionaries