Results 1 to 6 of 6

Thread: JSON parsing

  1. #1
    Join Date
    Apr 2009
    Posts
    2

    Default JSON parsing

    Is there any way to parse a JSON response in Boxee? JSON is supported in Python 2.6 but Boxee ships with 2.4.5.

  2. #2
    Join Date
    Nov 2008
    Posts
    279

    Default

    Try simplejson? http://code.google.com/p/simplejson/

    Appears to work in Python 2.4. I have no experience with python or simplejson...

  3. #3
    Join Date
    Apr 2009
    Posts
    2

    Default

    Thanks, but I don't see any way to distribute a library with an app.

    I guess I could inline the whole decode.py if that is standalone...
    Last edited by andyw8; April 29th, 2009 at 03:17 PM.

  4. #4
    Join Date
    Jul 2008
    Posts
    61

    Default

    hey hey,
    we actually include simplejson in the boxee distribution (and use it in pandora for example).
    so just go ahead and import it in your python code in the xml or the outside python libraries - it will work.
    let me know if you have any problems with it.
    idan

  5. #5
    Join Date
    Feb 2009
    Posts
    427

    Default

    Quote Originally Posted by idan View Post
    hey hey,
    we actually include simplejson in the boxee distribution (and use it in pandora for example).
    so just go ahead and import it in your python code in the xml or the outside python libraries - it will work.
    let me know if you have any problems with it.
    idan
    This doesn't appear to be the case with the latest windows version. Will there be a problem distributing it with the plugin?

  6. #6
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    111

    Default

    You won't have any problems including it in the plugin if you rename it. Good to know that it's out there. I've been developing on Windows, and being able to use JSON just made my life a whole lot easier.

Similar Threads

  1. Json rpc?
    By jasonvp in forum boxee applications
    Replies: 15
    Last Post: March 11th, 2013, 08:53 AM
  2. JSON over telnet
    By dw2009 in forum boxee applications
    Replies: 5
    Last Post: August 21st, 2011, 05:39 AM
  3. Json rpc?
    By jasonvp in forum boxee remotes
    Replies: 2
    Last Post: July 12th, 2011, 02:12 AM
  4. Is there any JSON API support
    By ashterisk in forum general boxee help
    Replies: 0
    Last Post: December 23rd, 2010, 12:36 PM
  5. JSON helpt
    By neondawg in forum boxee remotes
    Replies: 0
    Last Post: December 5th, 2010, 08:41 PM

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
  •