changed jsonParser and added another catch-block for better error-handling