Skip to Content
avatar image
Former Member

How to fetch and parse very long JSON data in MBO SUP Android

I have a webservice which gives JSON output but only in one row .

It gives TRUNCATED output after syncronisation in code in Android .

I have increased the size to 3000 for String for  fetching response.

But it works only till 3000 characters .

If a output data has more than 3000 characters it will again give TRUNCATED data .

How can I resolve this issue .

Kindly help .

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 07, 2015 at 07:51 AM

    Just a thought: Did you try after increasing PAGE SIZE while generating the code for android?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 07, 2015 at 08:03 AM

    I am searching for answer which will enable to fetch data as large as possible from Production servers

    The following trial and errors I have done .

    I have increased the String from default 300 to 3000 and the pagesize to maximum available .

    But then after certain time deployment fails .

    If depolyment is done successfully , then Generating code fails due to less page size .

    Can I have some permanent solution so I wont get TRUNCATED JSON data while fetching in my Android code.It does not get truncated while I hit via MBO .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have a SOAP based service of which I get only a JSON string output (which consists of whole output or JSON array ) from the webservice in only one field as seen in image below

      This is then mapped as seen in MBO below of which I get to fetch only one string JSON output .

      image.png (10.5 kB)
      soap.png (36.8 kB)