No, it doesn't work that way.
The JSON entry must be hosted in a server and then use the script above to get the JSON data.
Here is the script disassembled.
Defines a keyword in the prompt.
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Starts the script if not equal to null
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Starts the xmlhttp
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Specifies that the JSON string has a object myObj.
(This object must exist inside the JSON string)
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Overwrittes the html page with a new one
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Make a hyperlink with a JSON object called ip_str inside matches inside myObj
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
HTML CODE
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
Url to request the JSON String
Hidden Content
You must
[To see links please register here]
or
[To see links please register here]
to view this content.
TIP: I was trying to comment the keys as they appear on your post but it's missing code. Hope it highlights all the important questions.