Reading numeric keys from JSON file <p>Let's say I store a dictionary's values in JSON file. Here is the simplified code:</p> <pre><code>test = {} for i in range(10): for j in range(15): test['{},{}'.format(i, j)] = i * j with open('file1.json', 'w') as f: json.dump(test, f) </code></pre> <p>I have hard time reading back from this file. How can I read back from this file into a dictionary with elements like key as [i,j] and value as i*j? I use simple </p> <pre><code>with open('file1.json', 'r') as f: data2 = json.load(f) </code></pre>