jQuery getJSON save result into variable [duplicate]

I use getJSON to request a JSON from my website. It works great, but I need to save the output into another variable, like this:

var myjson= $.getJSON("", function(json) {


I need to save the result into myjson but it seems this syntax is not correct. Any ideas?



Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.