5 Replies Latest reply on May 18, 2017 7:08 AM by ppradhan RSS
    rjaiswal Explorer

    How to pass json data to GetJSON service

    Hello,

     

    I want to pass json data to GetJSON service through params.

     

    Rest URL: "http://localhost:8080/PumpCurveAnalytics/PumpAnalytics/BaselineJsonData/FlowVsBHP/4"

     

    var params = {

      proxyScheme: undefined /* STRING */,

      headers: undefined /* JSON */,

      ignoreSSLErrors: undefined /* BOOLEAN */,

      useNTLM: undefined /* BOOLEAN */,

      workstation: undefined /* STRING */,

      useProxy: undefined /* BOOLEAN */,

      withCookies: undefined /* BOOLEAN */,

      proxyHost: undefined /* STRING */,

      url: "http://localhost:8080/PumpCurveAnalytics/PumpAnalytics/BaselineJsonData/FlowVsBHP/4" /* STRING */,

      timeout: undefined /* NUMBER */,

      proxyPort: undefined /* INTEGER */,

      password: undefined /* STRING */,

      domain: undefined /* STRING */,

      username: undefined /* STRING */

    };

     

     

    // result: JSON

    var jsonData = Resources["ContentLoaderFunctions"].GetJSON(params);

     

     

    Is there any way to achieve this functionality?