Handle WoT JSON response more robustly