Discussion Board

Results 1 to 3 of 3

Thread: JSON and TDESC

  1. #1
    Registered User netspider's Avatar
    Join Date
    Nov 2010
    Posts
    2
    How can I set TDESC value from variable?

    I use:
    Code:
            _LIT(KString, "[\"dssdff\", \"fgfdg2\"]");
    
            CJsonBuilder* jsonBuilder = CJsonBuilder::NewL();
    
            jsonBuilder->BuildFromJsonStringL(KString);
            CJsonArray* rootArray;
            jsonBuilder->GetDocumentArray(rootArray);
    but I need to set it from variable. I get QByteArray and from replyAll() and need to set it to TDesC.



    Thanks in advance

  2. #2
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Unfortunately, the Symbian documentation has been taken offline. But you can find some good stuff on other sites. This may help:
    http://www.symbiantutorial.org/symbi...nd_Descriptors

  3. #3
    Registered User netspider's Avatar
    Join Date
    Nov 2010
    Posts
    2
    Thank you for the link, but I still have not make it to work.

Similar Threads

  1. JSON
    By atonical in forum Qt
    Replies: 1
    Last Post: 2010-10-09, 08:20
  2. How to download JSON ME Api "org.json.me.zip"
    By narendar_discover in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2010-05-01, 12:15
  3. how to pass TDesC type to TDesC via func
    By sunitha.m13 in forum Symbian C++
    Replies: 14
    Last Post: 2009-09-15, 17:47
  4. Replies: 2
    Last Post: 2009-03-13, 02:00
  5. Replies: 4
    Last Post: 2007-08-01, 07:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved