fixing an issue with automatic JSON parsing