Replaced RuntimeException with JsonException according to NateS