Parsing a long json string

 

Hello, 

I need to parse a long json string to pass it through a web service body, there is some limitation in string as the max length is 255, how do you get around this problem.

Here is a sample of the body of the request

{
  "Inputs": {
    "input1": {
      "ColumnNames": [
        "bar",
        "bartime",
        "open",
        "close",
        "high",
        "low",
        "volume",
        "indicator1",
        "indicator2",
        "indicator3",
        "indicator4",
        "indicator5",
        "indicator6",
        "indicator7",
        "indicator8",
        "indicator9",
        "indicator10",
        "indicator11",
        "indicator12",
        "indicator13",
        "indicator14",
        "indicator15",
        "indicator16",
        "indicator17",
        "indicator18",
        "indicator19",
        "indicator20"
      ],
      "Values": [
        [
          "value",
          "",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "value",
          "value",
          "value",
          "value",
          "value"
        ],
        [
          "value",
          "",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "0",
          "value",
          "value",
          "value",
          "value",
          "value"
        ]
      ]
    }
  },
  "GlobalParameters": {}
}

 
Marouane Majid: there is some limitation in string as the max length is 255, h
In MT4 documentation use to mention a maximum length of a single literal (i.e. "A literal"). No longer.
 
whroeder1:
In MT4 documentation use to mention a maximum length of a single literal (i.e. "A literal"). No longer.

how to sovle it ? mu url is longer than  256, how to pass it into webrequest function?

 
Marouane Majid:

Hello, 

I need to parse a long json string to pass it through a web service body, there is some limitation in string as the max length is 255, how do you get around this problem.

Here is a sample of the body of the request

You should work with uchar [] arrays, not strings. Arrays doesn`t have size limitation

 
autotrader5: how to sovle it ?
Maxim Kuznetsov: You should work with uchar [] arrays, not strings. Arrays doesn`t have size limitation
Solve what? Strings have no limitation. String literals no longer have the limitation.
Reason: