Albe1
                
              
              
                
              
                  
                  
              1
              
             
            
              Hello,
I'm working on translator app and integrating the Google Translate API. I've built the following blocks:
- I'm using a Web Component (WebTranslator) to send requests to the Google Translate API
- The JSON body for the API requets
- I'm using the following URL: https://translation.googleapis.com/language/translate/v2?key=
- Header= Content-Type: application/json
Issue: I keep receiving the following error
Can somebody help me, what is the problem?
             
            
              
              
              
            
            
                
                
              
           
          
            
              
                Taifun
                
              
              
                
              
                  
                  
              2
              
             
            
              Errors in your JSON
Use Do it to display your JSON string...
Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits!         Snippets,         Tutorials and        Extensions from        Pura Vida Apps by  Taifun.
  Taifun.
             
            
              
              
              
            
            
                
                
              
           
          
            
              
                Taifun
                
              
              
              
                  
                  
              3
              
             
            
              You also can check for valid JSON here
Taifun
             
            
              
              
              
            
            
                
                
              
           
          
            
              
                TIMAI2
                
              
              
                
              
                  
                  
              4
              
             
            
              Or build your json with dictionary blocks:
             
            
              
              
              2 Likes