What does XBMC's JSON-RPC have to do with IR commands? I have no clue but I don't know about XBMC's core being able to send IR commands.
Always read the online manual(wiki), FAQ(wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules(wiki).
Please read the pages on troubleshooting(wiki) and bug reporting(wiki) before reporting issues.