change eval into JSON parse