Miranda IM

Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: JSON support

  1. #1
    Join Date
    August 2005
    Location
    Russia, Saint-Peterburg
    Posts
    458

    JSON support

    thinked to write to "feature request" part but reslly, it for developers only...
    so, what about implement API for INTERNAL JSON parser?
    Many internet resources uses it, so, what is the reason to use their own implementation in every plugins who need it?
    XML was made, what about JSON now?

    really, i was glad to see zlib interface too but... at least, JSON. please!

  2. #2
    Join Date
    June 2005
    Posts
    11,839
    zlib interface was part of Miranda forever... Not sure what else are you looking for.
    If somebody want's to code JSON parser you are welcome.
    And BTW, XML API was poorly made, nobody except Jabber protocol actually using it... All other protocols/plugin still have built-in parser.

  3. #3
    Join Date
    August 2005
    Location
    Russia, Saint-Peterburg
    Posts
    458
    firstly, don't say "all" if you don't knows it.
    secondary, WHERE is zlib support in API? you mean m_freeimage / m_imgsrvc.h ? isn't it not proper place for common functions?
    i don't says what implemented XML is good but it doing what needs. JSON can be usable too. right now and maybe in future too.

  4. #4
    Join Date
    June 2005
    Posts
    11,839
    Quote Originally Posted by Awkward View Post
    firstly, don't say "all" if you don't knows it.
    secondary, WHERE is zlib support in API? you mean m_freeimage / m_imgsrvc.h ? isn't it not proper place for common functions?
    The header files are in plugins\zlib. I know it's not the proper place to store them... But it they are there.

    Quote Originally Posted by Awkward View Post
    i don't says what implemented XML is good but it doing what needs.
    No it does not. Over complex, too slow, does not support pure UTF8 parsing with no TCHARs, even Jabber has issues with it. The code to work around them is very ugly and not full proof. ghazan promised to fix it 2 years ago never did.
    Quote Originally Posted by Awkward View Post
    JSON can be usable too. right now and maybe in future too.
    Somebody get to volunteer to create JSON plugin.

  5. #5
    Join Date
    August 2005
    Location
    Russia, Saint-Peterburg
    Posts
    458
    about zlib: then i am uderstands ^_^ but maybe better to move header to more proper place?
    XML is ugly, i know, i said about it long time ago. but even in form as is it still useful - "someting" better than "nothing"
    not too hard to create plugin for it. world have many ready libraries. but i said about future implementation in core, like XML. before that, all right, i will ask people to implement it as plugin...

  6. #6
    Join Date
    June 2005
    Posts
    11,839
    Try finding a good C library or C++ with no STL. The choice is very limited....

  7. #7
    Join Date
    March 2005
    Location
    Hong Kong
    Posts
    371
    Actually you may try the libJSON library with my modification to fix UTF-8 characters.
    Source code is available in:
    http://code.google.com/p/studiokuma/...runk%2Flibjson

    The checked out project is ready to build a DLL file, or you may incorporate it into your project directly.

    I have already used it in 2 of my protocol projects.

  8. #8
    Join Date
    June 2005
    Posts
    11,839
    starkwong, interesting ....
    Last edited by borkra; 22 Mar 2011 at 4:47 AM.

  9. #9
    Join Date
    March 2005
    Location
    Hong Kong
    Posts
    371
    Awkward,

    it doesn't matter if your plugin is written in Pascal or C, you can always use exported C functions from DLL.
    You can download the precompiled DLL at following address:
    http://studiokuma.googlecode.com/files/libjson.zip

    Documentation is available in previous link.

    You may need to write definitions for the functions, however the JSON handle that it use is just a opaque pointer (i.e. void* in C), so it should be easy.

  10. #10
    Join Date
    August 2005
    Location
    Russia, Saint-Peterburg
    Posts
    458
    it ok, i will try it.
    i just hoped what it will be implement as "native" miranda plugin or core module ^_^

Similar Threads

  1. Webcam Support?
    By Scoty in forum Feature Requests
    Replies: 1
    Last Post: 22 Mar 2010, 6:37 PM
  2. win9x support
    By borkra in forum General Discussion
    Replies: 49
    Last Post: 16 Aug 2007, 3:04 AM
  3. GOIM Support
    By Perry in forum Feature Requests
    Replies: 3
    Last Post: 23 Nov 2006, 9:01 AM
  4. Avatar support
    By Shmilga in forum Technical Support
    Replies: 2
    Last Post: 9 Jan 2006, 7:35 PM
  5. UPnP support
    By zz123zz in forum Feature Requests
    Replies: 4
    Last Post: 11 Jul 2005, 2:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •