Perform mathematical operations on response fields #177
              
                Unanswered
              
          
                  
                    
                      lifeisawavesorideit
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         I recently added support for JSONata to be able to support this use case. It's not possible using JSONPath expressions unfortunately.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. First of all thank you for this excellent plug-in and your excellent work. I was wondering if there is way to perform simple mathematical operations on the response fields.
Maybe the following example makes it easier to understand what I mean by that:
My sensor values are stored in the response under
$.sensorValues[0].values[*].v, with$.sensorValues[0].values[*].v= [10, 15, 20, 30]How could I multiply, divide, add or substract these values with a certain variable so that for instance the displayed values are [100, 150, 200, 300]?
$.sensorValues[0].values[*].v * 100doesn't deliver the desired results.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions