Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:26:46+00:00 2026-05-29T13:26:46+00:00

I am attempting to parse the incoming JSON from XBMC (Eden Beta v3), an

  • 0

I am attempting to parse the incoming JSON from XBMC (Eden Beta v3), an example string from XBMC is as follows:

{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"type":"movie"},"player":{"playerid":1,"speed":1},"title":""},"sender":"xbmc"}}

I am using json2.js from https://github.com/douglascrockford/JSON-js/blob/master/json2.js to give me the JSON.parse and JSON.stringify functions in my application.

I am using the parse function in my code like this

var temp = JSON.parse(data);

Which is working fine for the first two properties, “jsonrpc” and “method”… so I can access those like this

temp.method

returns “Player.OnPlay”

temp.jsonrpc

returns “2.0”

However, if you look at the string sent by XBMC, it also contains what they refer to as “extended parameters” or “params”, I cannot seem to track down what the JSON parser is doing with the rest of the message, or how I can access them in similar ways as the first two properties. If I try

params = temp.params

or any other way of accessing the params property, I get an Undefined error as there is no such property in the JSON object… I hope this is clear enough for someone to take a stab at helping me out. Will provide any extra info needed…

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:26:47+00:00Added an answer on May 29, 2026 at 1:26 pm

    The value of params in the JSON data is an object, so you have to access the sub-properties of that.

    temp.jsonrpc
    temp.method
    temp.params["data"]["item"]["type"]
    temp.params["data"]["player"]["playerid"]
    temp.params["data"]["player"]["speed"]
    temp.params["data"]["item"]["title"]
    temp.params["sender"]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to parse some JSON from a URL via Flash/AS3. Here's my
I'm attempting to use boost::date_time to parse a date string (obtained from the Twitter
I am attempting to parse a JSON feed from Yahoo Pipes to turn it
I am attempting to parse some json I am getting back from a service.
I'm attempting to use regexp to parse a search string that from time to
Attempting to use the data series from this example no longer passes the JSONLint
I'm attempting to parse a JSON feed using the LastFM API but there are
So I've managed to get the feed from twitter and am attempting to parse
I am attempting to parse keydown events from the numberpad with the following: $('#myDiv').keydown(function(e)
I'm attempting to parse XML in the following format (from the European Central Bank

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.