resolved JSON parse failure bug