2013-02-13, 02:27
Just when I thought I was getting a good grasp on the JSON syntax I'm getting an error that I can't figure out why. I'm trying to update several movie parameters at once. It seems as though if I do the movieid and one other parameter, it's successful, but if I add one (or more) additional parameters, then I get an error such as the one below. I'm sure it's something simple, but I haven't been able to figure out what I'm doing wrong.
What I'm trying:
Error in return:
What I'm trying:
Code:
{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": {"movieid": 130, "Movietitle": "Moviename", "plot": "this is where the plot goes"}, "id": 1}
Error in return:
Code:
{"error":{"code":-32602,"data":{"message":"Too many parameters","method":"VideoLibrary.SetMovieDetails","stack":{"name":"plot","type":["null","string"]}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}