The JSON data displaying on Blackberry Simulator or device not but waving poster

Hello

I use ripple to develop an application that makes jQuery/Ajax calls to a Web service that returns jSON. The returned data show in Wellington, but not on the emulator or the device. I use the 9800 torch Simulator, php to create the jSON and jQuery.

Problem has been resolved. I made a mistake (a rookie mistake real) earlier in the code. I left out 'http://www.mydomain.com' when I did the ajax call to my php page. Everything works now. Thanks to all for trying to help with this.

Tags: BlackBerry Developers

Similar Questions

  • problems with the JSON data loading

    Hello

    I have follow-up Simon Widjaja (EDGEDOCKS) YouTube lesson for the JSON data loading external. But I am not able to connect at least the console database.

    I get this error: "error avascript in the handler! Type of event = element.

    Content.JSON is located in the folder. Data there are very simple:

    [

    {

    "title": "TITLE 1",

    'description': "DESCRIPTION 1"

    },

    {

    "title": "TITLE 2",

    'description': "DESCRIPTION 2"

    }

    ]

    And here's the code in edgeActions.js:

    (function ($, edge, compId) {})

    Composition of var = Edge.Composition, symbol = Edge.Symbol; alias for classes of edge commonly used

    Edge symbol: "internship."

    (function (symbolName) {}

    Symbol.bindElementAction (compId, NomSymbole, 'document', 'compositionReady', function (sym, e) {})

    external json data loading

    $.ajax({)

    type: 'GET ',.

    cache: false,

    URL: "content.json",

    data type: 'json ',.

    success: function (data) {console.log ("data:", data);},

    error: function() {console.log ("something went wrong") ;}}

    });

    });

    End of binding edge

    (}) ('step');

    End of edge symbol: "internship."

    }) (window.jQuery |) AdobeEdge. ($, AdobeEdge, "EDGE-11125477");

    I tried $getJSON also as mentioned in the youtube video.

    Please note: I do not understand 'something was wrong' also connected.

    I use the free trial version. It is a limitation in the free trial version?

    Well, same question as here: loading external data using ajax

    Cannot run the jQuery file is missing, then $. ajax() or $. getJSON().

    You must add the jQuery file as shown below:

    See: http://jquery.com/download/

    Note: Without loading the jQuery file, you can use these functions: API JavaScript Adobe Edge animate CC

  • DeserializeJSON - is there a limit on the size of the JSON data that can be converted?

    , I have a few valid JSON data which are converted successfully by DeserializeJSON... until it gets to a certain size, or is certainly what seems to be the case.  The breaking point seems to be somewhere in the neighborhood of 35 000 characters... about 35 KB.  When the conversion fails, it fails with a "JSON parsing failure: unexpected end of the JSON string" message.  And if the conversion fails, the JSON data are deemed to be valid by tools like this: http://www.freeformatter.com/json-validator.html.

    So, is there a limit on the size of JSON data can be converted by DeserializeJSON?

    Thank you!

    Thank you, Carl.

    The JSON is presented in its entirety, confirmed by Fiddler.  And it is in fact being recorded successfully to a SQL Server nvarchar field too.  I can validate that saved JSON.

    I'm actually grabbing the JSON to convert directly from SQL Server and your comments / ideas drove me on the path of resolution.

    It turns out that the JSON is truncated before going to the DeserializeJSON command, but it was the attraction of cfquery which was truncated.  The difficulty was to allow the 'long text retrieval (CLOB)"for this data source in CF Admin.  I would never forward or even knew that he had this setting.

    Thanks again for your comments!

  • The icon of my creative cloud that appears on top of the MAC, the box and when you open the application is displayed in white. It does not work. What should I do? Thank you

    The icon of my creative cloud that appears on top of the MAC, the box and when you open the application is displayed in white. It does not work. What should I do? Thank you

    Please visit:creative cloud is empty window why?

    Re: Empty opening creative cloud app

    Cloud Desktop App is empty

    I hope this helps.

    Concerning

    Megha Rawat

  • Help with several ListItemComponents with the JSON data

    I can't find a way to use a specific ListItemComponent for a specific type of element JSON. I can only find examples for XML data that works. But I tried to do the same thing for JSON and does not work.

    The examples that I found (nothing for JSON):

    Basically, I want to display a specific ListItemComponents for the JSON element in a table. One of the Photos, videos, etc...

    QML

    listItemComponents:
    [
        ListItemComponent
        {
            type: "photos"
    
            content: Container
            {
                horizontalAlignment: HorizontalAlignment.Fill
                background: Color.Green
    
                Label
                {
                    text: ListItemData.text
                    horizontalAlignment: HorizontalAlignment.Fill
                }
            }
        },
        ListItemComponent
        {
            type: "videos"
    
            content: Container
            {
                horizontalAlignment: HorizontalAlignment.Fill
                background: Color.Yellow
    
                Label
                {
                    text: ListItemData.text
                    horizontalAlignment: HorizontalAlignment.Fill
                }
            }
        },
        ListItemComponent
        {
            type: "status"
    
            content: Container
            {
                horizontalAlignment: HorizontalAlignment.Fill
                background: Color.Blue
    
                Label
                {
                    text: ListItemData.text
                    horizontalAlignment: HorizontalAlignment.Fill
                }
            }
        },
        ListItemComponent
        {
            type: "link"
    
            content: Container
            {
                horizontalAlignment: HorizontalAlignment.Fill
                background: Color.Red
    
                Label
                {
                    text: ListItemData.text
                    horizontalAlignment: HorizontalAlignment.Fill
                }
            }
        }
    ]
    

    JSON

    [
        { type : "photos", text: "this is a photo" },
        { type : "video", text: "this is a video" },
        { type : "status", text: "this is a status" },
        { type : "link", text: "this is a link" }
    ]
    

    This works fine if I add it to a ListView dataModel. GroupDataModel or ArrayDataModel.

    Can someone please help? Thank you very much in advance!

    Redefine the itemType for the data model.

                    // Item type mapping
    
                    function itemType(data, indexPath) {                    if (indexPath.length == 1) {                        return 'header';                    } else {                        switch (Number(data.type)) {                            case 0:                                return 'this_item';                                break;                            case 1:                                return 'that_item';                                break;                            case 2:                                return 'another_item';                                break;                            case 3:                                return 'whos_item';                                break;                            case 4:                                return 'item_item';                                break;                            case 5:                                return 'yet_another_item';                                break;                            case 6:                                return 'last_item';                                break;                        }                    }                }
    

    DataModel is a GroupDataModel

    dataModel: {StatisticsModel}

    Class ExampleModel: public bb::cascades:GroupDataModel

  • view the json data in the custom list field

    Hi, I did analysis json and I created the custom list field. Now, I want to display only the data analyzed in my custom list field. I'll post my analyzed data from json and here is the code for my custom list field
    data analyzed.
    I have THREE channels of json and I want to show content tittle and date in the list filed. I'll post the screenshot of my list.

    JSONArray jsnarry = new JSONArray(responce);
                System.out.println("\n--length----- "+jsnarry.length());
                //System.out.println("....................................................=");
                for (int i = 0; i < jsnarry.length(); i++){
    
                    JSONArray inerarray = jsnarry.getJSONArray(i);
                        //System.out.println("\n-inerarray-values----- "+inerarray.getString(i1));
                        String TITTLE = inerarray.getString(1);
                        String CONTENT = inerarray.getString(2);
                        String DATE = inerarray.getString(3);
                                                           System.out.println("TITTLE= "+TITTLE);
                        System.out.println("CONTENT= "+CONTENT);
                        System.out.println("DATE= "+DATE);
    
    }
    

    output

    [0.0] --length----- 2
    [0.0]
    [0.0] -innerarray-length----- 6
    
    [0.0] TITTLE= BJP State President Sanjay Tandon's visit to Amita Shukla's Home
    [0.0] CONTENT=  BJP President Chandigarh Sanjay Tandon at Amita Shukla's Home
    [0.0] DATE= 2013-01-04
    [0.0] ................................................
    [0.0] TITTLE= Sanjay Tandon at mahasamadhi of Satya Shri Sai baba.
    [0.0] CONTENT= BJP Chandigarh President, Sanjay Tandon mahasmadhi of Sri Satya Sai Baba.(Andhra Pradesh)
    [0.0] DATE= 2013-01-13
    

    and my custom list field

           super(NO_VERTICAL_SCROLL);
    
             String TITTLE="TITTLE";
             String CONTENT = "CONTENT";
             String DATE = "DATE";
    
             v.addElement(new ListRander(listThumb, TITTLE, CONTENT,DATE, navBar));
    
             myListView = new CustomListField(v){
    
                 protected boolean navigationClick(int status, int time) {
                     //Dialog.alert(" time in milisec :" + time);
                     return true;
                 }
             };
    

    CustomListField.java

    public class CustomListField extends ListField implements ListFieldCallback {
    
        private Vector _listData;
        private int _MAX_ROW_HEIGHT = 100;
    
        public CustomListField (Vector data) {
    
            _listData = data;
            setSize(_listData.size());
            setSearchable(true);
            setCallback(this);
            setRowHeight(_MAX_ROW_HEIGHT);
    
        }
    
        public int moveFocus (int amount, int status, int time) {
    
            this.invalidate(this.getSelectedIndex());
            return super.moveFocus(amount, status, time);
    
        }
    
        public void onFocus (int direction) {
    
            super.onFocus(direction);
    
        }
    
        protected void onUnFocus () {
    
            this.invalidate(this.getSelectedIndex());
    
        }
    
        public void refresh () {
    
            this.getManager().invalidate();
    
        }
    
        public void drawListRow (ListField listField, Graphics graphics, int index, int y, int w) {
    
            ListRander listRander = (ListRander)_listData.elementAt(index);
            graphics.setGlobalAlpha(255);
            graphics.setFont(Font.getDefault().getFontFamily().getFont(Font.PLAIN, 24));
            final int margin =5;
    
            final Bitmap thumb= listRander.getListThumb();
            final String listHeading = listRander.getListTitle();
            final String listDesc= listRander.getListDesc();
            final String listDesc2= listRander.getListDesc2();
            final Bitmap nevBar = listRander.getNavBar();
    
            //list border
            graphics.setColor(Color.BLACK);
            graphics.drawRect(0, y, w, _MAX_ROW_HEIGHT);
    
            graphics.drawBitmap(margin, y+margin+10, thumb.getWidth(), thumb.getHeight(), thumb, 0, 0);
    
            graphics.drawText(listHeading, 3*margin+thumb.getWidth(), y+margin);
            graphics.setColor(Color.BLACK);
    
            graphics.drawText(listDesc, 3*margin+thumb.getWidth(), y+ margin+30);
            graphics.drawText(listDesc2, 3*margin+thumb.getWidth(), y+ margin+60);
    
        }
    
        public Object get(ListField listField, int index) {
    
            String rowString = (String) _listData.elementAt(index);
            return rowString;
    
        }
    
        public int indexOfList (ListField listField, String prefix, int start) {
    
            for (Enumeration e = _listData.elements(); e.hasMoreElements(); ) {
    
                String rowString = (String) e.nextElement();
                if (rowString.startsWith(prefix)) {
    
                    return _listData.indexOf(rowString);
    
                }
    
            }
    
            return 0;
    
        }
    
        public int getPreferredWidth(ListField listField) {
    
            return 3 * listField.getRowHeight();
    
        }
    
    }
    

    Listrander.Java

    public class ListRander {}

    private bitmap listThumb = null;
    incognito bar Bitmap = null;
    private String listTitle = null;
    private String listDesc = null;
    private String listDesc2 = null;

    public ListRander (Bitmap listThumb, String listTitle, String listDesc, String listDesc2, Bitmap navBar) {}
    this.listDesc = listDesc;
    this.listDesc2 = listDesc2;
    this.listThumb = listThumb;
    this.listTitle = listTitle;
    this.navBar = bar navigation;
    }
    public getListThumb() {Bitmap image
    Return listThumb;
    }
    {} public void setListThumb (listThumb Bitmap)
    this.listThumb = listThumb;
    }
    public getNavBar() {Bitmap image
    return the navigation bar;
    }
    {} public void setNavBar (navigation bar of the Bitmap)
    this.navBar = bar navigation;
    }
    public String getListTitle() {}
    Return listTitle;
    }
    {} public void setListTitle (String listTitle)
    this.listTitle = listTitle;
    }
    public String getListDesc() {}
    Return listDesc;
    }
    {} public void setListDesc (String listDesc)
    this.listDesc = listDesc;
    }
    public String getListDesc2() {}
    Return listDesc2;
    }
    public void setListDesc2 (String listDesc2) {}
    this.listDesc2 = listDesc2;
    }
    }

    You seem to have two problems here and are confusing them.  You must break the problem into two parts

    (1) extract the data from the entry and create the objects you want to display

    2) display in a list, a set of objects.

    Let's get the sorted first premiera.

    I will suggest what to do here, but in practice, you might actually think about this yourself as part of the design phase of your application.  You should do this, not me, because then you will have all the information available.  At the present time, I have just what you said, which is not much.  So maybe what I'm telling you is not correct for your application.  Only you can decide that.  And be blunt here, you should have decided this before you start coding.  Do you want you could lead down the wrong path.  You must think of your application as a home - as the architect must design all the rooms, and how they will be built, before you start building the House.  You do not, then we are building the rooms on the fly.  Who knows if they will be fit at home?

    In this case, I think you need to create an object that represents each of the elements in the internal array of new data.  call this object

    NewsItem

    This object will have attributes, such as its title, content, date, the linked image and so on, each of whom have will get and set methods.  While you treat each inner element fetch you the associated entry and update the object.

    When you have finished the inner loop of processing, you now have a complete

    NewsItem

    Object, so you will add it to a collection, an array of NewsItem objects, call this _newsItems.  You will create it at the beginning - you know how many entries it takes because it is the number of entries in your outdoor table.

    So before you start to deal with JSON, create your table and the 'index' value of 0.

    Once you have created your Newsitem, add this in the table to the position 'index' and increment "index".

    And once you have analyzed all the JSON, you will have a complete picture.  This is part 1 finished!

    And note in your drawListRow, you are given a clue - that is the index in your tables in _newsItems.  So you can easily find which entry to view and display it correctly.  But it is part 2 and is a separate issue.

  • Reorganization of the JSON data

    Hi all

    I need help, reorganizing the data I receive from a JSON Unflatten.
    I have a JSON string of a call to API (JSON unflatten) that contains a name (String), a digital and a channel (also a string).
    The JSON Unflatten automatically directs the data it receives in order, the data is provided.  The data is information on the channels.  The problem arises when not all channels are provided.  If out of 12 channels, the JSON receives information on only 4 channels, he ordered the 1 to 4 in the table.  However, 1 may not correspond to channel 1 and can actually be channel 5 and 3 might not correspond to channel 3 so on and so forth.  I want to reorganize the JSON based on reading channel (a channel named canal).  So, if in the table that Channel 4 is actually 12 (based on the channel of the channel, i.e., channel-12), I would link data from Channel 4 to profile 12 in a new table, so that the order of the channels still dependent on chain channel and not according to the order of unflatten of JSON.

    Please help as I am running out of ideas on how to solve this problem.

    Thank you.

    That's what is lying to you?

    PS: Try to avoid the multiple index table - it is preferable to use arrays and loops

  • How to upgrade the json data in 12.1.0.2

    XmlType support copy editing xml update, as I have found no json update guide in Oracle XML DB Developer Guide (chapter 39 JSON in Oracle Database)

    I have a json data column named info in the table of tjson as below:

    {

    "'name': 'tom ', '.

    ID card': 12,.

    "addr':"an address. "

    'Phone': ['6574573', '2375899']

    }

    Can I use sql to query a key value (property) of the column of json:

    Select t.info.name from tjson t where t.info is not null and t.info is json (strict)

    But how can I insert (perhaps to update or delete) key (property) in tjson.info, as the copy edit the thing of the xmltype

    There is still no equivalent to the language XQuery Update for JSON. The only form of update, we support is to replace the whole document. At least for XML, for small documents, up to 1 MB in size a complete replacement is often less expensive than the cost of the computation of an update...

  • Remove the camera data displayed in develop Panel

    My young grandson watched some of my images in Lightroom and hit a few too many keys, and now the camera data were available through all my images. How can I remove these data, not the image itself, but the have displayed in the picture while I'm developing it? So frustrating...

    Thank you

    Tanya

    They view > Loupe Info > show the overlay of information (see the menu of keyboard shortcuts).

  • According to the value data display

    Hi everyone, I need help to write a query. I have the following data:
    WITH data1 AS
    (
      SELECT 1 num,     'PAL1' acct     ,'PRIN' descr FROM dual UNION all
      SELECT 1 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 1 num,     'COL' acct     ,'AL' descr FROM  dual UNION all
    
      SELECT 2 num,     'PAL2' acct     ,'PRIN' descr FROM dual UNION all
      SELECT 2 num,     'COL' acct     ,'SEC' descr FROM  dual UNION ALL
      SELECT 2 num,     'COL' acct     ,'AL' descr FROM  dual UNION all
    
      SELECT 3 num,     'PAL1' acct     ,'PRIN' descr FROM  dual UNION all
      SELECT 3 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 3 num,     'COL' acct     ,'AL' descr FROM dual UNION all
    
      SELECT 4 num,     'COL' acct     ,'SEC' descr FROM dual UNION all
      SELECT 4 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 4 num,     'MT' acct     ,'MA' descr FROM dual
    
    )
    The query that I write will be inside a PROCEDURE. a parameter will pass with the value of the ACTC.
    the possible values of the parameter are: ALL, COL PAL1, PAL2, MT

    If one value other than EVERYTHING happened inside I want to get all the lines for a specific number which contain at least one MAIN line.
    for example
    PAL1 pass, THEN the output should be
    num    acct    descr
    ====   =====   ======
    1      PAL1    PRIN
    1      COL     SEC
    1      COL     AL
    
    3      PAL1    PRIN
    3      COLL    SEC
    3      COLL    AL
    as you can see, the acct PAL1 contain at least one row with MAIN descr num = 1 and num = 3. in this case, all the lines for these num (ex num = 1 and 3)
    have been exposed in the output.


    Another example is that pal2 is pass, then output should be
    num    acct    descr
    ====   =====   ======
    2      PAL2    PRIN
    2      COL     SEC
    2      COL     AL
    num = 2 in this case is the only one who has PAL2 and at least a main line.

    now, let's say MT's past as a parameter, in this case num = 4 is the only one with a row of MT, but there is no MAIN line for this name.
    so no output.

    If the 'ALL' value is pass as a parameter, and then get all lines without worrying if a MAIN line closes. in this case the output should be
    num    acct    descr
    ====   =====   ======
    1      PAL1    PRIN
    1      COL     SEC
    1      COL     AL
    
    2      PAL2    PRIN
    2      COL     SEC
    2      COL     AL
    
    3      PAL1    PRIN
    3      COLL    SEC
    3      COLL    AL
    
    
    4      COLL    SEC
    4      COLL    SEC
    4      MT      MA
    and for the last example, if the PASS is a pass and then output should be
    num    acct    descr
    ====   =====   ======
    1      PAL1    PRIN
    1      COL     SEC
    1      COL     AL
    
    2      PAL2    PRIN
    2      COL     SEC
    2      COL     AL
    
    3      PAL1    PRIN
    3      COLL    SEC
    3      COLL    AL
    as a MAIN line to num = 1, 2, 3 for VAC = PASS then all belonging to num lines specific should be display


    can someone help me WRITE a query FOR this scenario?
    Thank you. your help is appreciated

    This will do

    WITH data1 AS
    (
      SELECT 1 num,     'PAL1' acct     ,'PRIN' descr FROM dual UNION all
      SELECT 1 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 1 num,     'COL' acct     ,'AL' descr FROM  dual UNION all
    
      SELECT 2 num,     'PAL2' acct     ,'PRIN' descr FROM dual UNION all
      SELECT 2 num,     'COL' acct     ,'SEC' descr FROM  dual UNION ALL
      SELECT 2 num,     'COL' acct     ,'AL' descr FROM  dual UNION all
    
      SELECT 3 num,     'PAL1' acct     ,'PRIN' descr FROM  dual UNION all
      SELECT 3 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 3 num,     'COL' acct     ,'AL' descr FROM dual UNION all
    
      SELECT 4 num,     'COL' acct     ,'SEC' descr FROM dual UNION all
      SELECT 4 num,     'COL' acct     ,'SEC' descr FROM dual UNION ALL
      SELECT 4 num,     'MT' acct     ,'MA' descr FROM dual
    
    ) select * from data1
    where :param='ALL' or
    (
      num in (select num from data1
        where acct=:param
        and exists(select 1 from data1 where acct=:param and descr='PRIN'))
    )
    

    Edit: replace: with param .parameter_name if necessary.

    Published by: david.sweet on February 19, 2011 07:57

    Published by: david.sweet on February 19, 2011 07:57

  • How access to the SD card in my blackberry Simulator

    MA in my application I want to access my SD card but in Simulator how do I access card SD is possible to access SDCard Simulator please help me in this regard...

    Magalie

    I found the solution for this... Thanks to the forum

    to do this, go in this...

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800792/801083/How_To _...

  • During the installation of an update for Skype get device not detected DirectX error

    Original title: is no longer detected device DirectX

    When you install an update to Skype, it crashed (and does so every time I have install and reinstall) peripheral suitor DirectX not detected.  Someone knows what to do?

    Hello

    ·         The issue is only with Skype?

    ·         What operating system do you use?

    I suggest you to contact the Skype support for any known problem connects to the update of Skype.

    https://support.Skype.com/

    See also:

    Diagnosing basic problems with DirectX

    http://Windows.Microsoft.com/en-us/Windows7/diagnosing-basic-problems-with-DirectX

     

    Run the DirectX Diagnostic tool

    http://Windows.Microsoft.com/en-us/Windows-Vista/run-DirectX-Diagnostic-tool

  • BlackBerry Smartphones USB device not recognized

    My 7105t worked fine until a week ago, then my computer began to send the above message, in the subject line.  I have tried everything I can think of, including reinstalling the software, but nothing prevents the reapparing message and so let me sync.  I hope someone can help.  I use the desktop Version 4.2.1.8 with 4.2.1.9 Device Manager and BBDevMgr (two managers device somehow, is that a problem?), USB driver series 3.1.0.1, 4.2.1.11 and RIM 1.0.0.35 program application loader.  Curiously, when I try to repair thanks to add and remove programs, the computer (Windows XP) can not find the software, which I have reinstalled it using the default settings by it to find me. I am at the end of the roll and you will enjoy all the tips.   Thank you!

    1. remove the USB BB;

    Restart the PC and while it is powered, the battery on the BB, reinserting after a few seconds, and then restart the BB.

    Try everything again.

    2. make sure that your USB cable is connected to one of the main rear USB ports of the PC. A USB hub, or USB Monitor port not a USB port on the front of the PC.

  • I'm unable to connect my pc to my blackberry via bluetooth. device not found driver. How to install this driver

    How to install this driver so that I can connect my c for my blackberry?

    First, you will need to check with Blackberry to see if your device supports this connection. He can't.

  • QNetworkReply running into the problem of loading JSON data

    Hello

    I am a beginner with C++ and QT, but so far I'm starting to love the NDK waterfall!

    I'm trying to load a json data file that is extracted via a http request. Everything goes through, but my json data simply would not load in the QVariantList. So after a few hours of poking arround, I noticed finally that the json returned by the http request data is missing two brackets [] (an @ beginning and an end @).

    When I load the json data into a file with the two brakets included, the QVariantList load properly and I can debug through the records...

    Now my question is... how C++ can I add those parentheses []... See the code example below:

    void MyJSONReadClass::httpFinished()
    {
      JsonDataAccess jda;
      QVariantList myDataList;
    
      if (mReply->error() == QNetworkReply::NoError)
      {
        // Load the data using the reply QIODevice.
        qDebug() << mReply;
        myDataList = jda.load(mReply).value();
      }
      else
      {
        // Handle error
      }
    
      if (jda.hasError())
      {
        bb::data::DataAccessError error = jda.error();
        qDebug() << "JSON loading error: " << error.errorType() << ": "
            << error.errorMessage();
        return;
      }
    
      loadData(myDataList);
    
      // The reply is not needed now so we call deleteLater() function since we are in a slot.
      mReply->deleteLater();
    }
    

    Also, I would have thought that the jda.hasError () have captured this question... but guess not!

    I use the wrong approach or wrong classes? The basic example used is the WeatherGuesser project.

    Thanks for your help...

    It is perhaps not related to media. Try to recover data from QNetworkResponse as a QByteArray then load it into JsonDataAccess using loadFromBuffer:

     myDataList = jda.loadFromBuffer(mReply.readAll()).value();
    

    If this is insufficient, you can add media in this way (not tested, please see the documentation for the names of functioning if it won't compile):

    QByteArray a = mReply.readAll();
    a.insert(0, '[');
    a.append(']');
    myDataList = jda.loadFromBuffer(a).value();
    

    Note that if the response data are zero end (most likely it is not, but there is a possibility of it), you will need to check if the last symbol in byte array is '\0' and insert the capture media.

    QByteArray docs:

    http://Qt-project.org/doc/Qt-4.8/QByteArray.html

Maybe you are looking for