I don't imagine it would be any different, surely the only difference between SharePoint and SharePoint online is that the latter is cloud-hosted?
Note that Microsoft web servers often don't have support for the JSON mime-type, here's the workaround for that.