Parsing a long json string

To add comments, please log in or register
Marouane Majid
1676
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

{
  "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": {}
}

whroeder1
17949
whroeder1  
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.
autotrader5
26
autotrader5  
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?

Maxim Kuznetsov
15677
Maxim Kuznetsov  
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

whroeder1
17949
whroeder1  
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.
To add comments, please log in or register