python eval vs ast.literal_eval vs JSON decode
<p>I am converting 2 MB of data as a string into a dict.
The input is serialized in JSON.</p>

<p>Anyways I am currently using ast.literal_eval and I get the dictionary I want, but then when I tried just running eval it seems to run faster, and also returns the same result.</p>

<p>Is there any reason to use the ast module or the json module when eval works just fine?</p>
