Can't open an url with loadJSONObject but it works with HTTP Library

I’m sure that the problem can be solved by adding a user agent to the request. Is it possible to do so with the function loadjson? I looked into the javadoc but couldn’t find any hint