Kodi Community Forum

Full Version: How to use Array.String in Json-rpc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

I want to know how to use this:

 { "id": "Array.String",
"type": "array",
"items": { "minLength": 1,
"type": "string" } }

I want to send string through json-rpc and I think that will help me.  Huh
That describes the json payload you need to associate with your web query.
Those are basically the 'validation rules' you must use to create the json payload.
@axa88

Is there any example how to use it because I am fresh in json-rpc with xbmc!

Thank you very much
@axa88 

for example if I have this payload data of json-rpc where can I add an integer to send it with it?

data =  '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.openprogram"},"id":1}'

Thank you very much for your help :-)