Fixed Flask JSON parsing bug due to 0.10 -> 0.9 switch.