I'm requesting JSON file which has an invalid structure:
{}&&{
"result": {
"data": "01",
"id": "02"
}
}
I can't change JSON. It's on external server. Firebug returns syntax error pointing to the && characters.
What should I do to get this invalid JSON?
My script:
<script src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.ajax({
url:"http://different-domain.com",
dataType: 'JSONP',
success: parseJSON
function parseJSON(data){
// do stuff with json
}
});
</script>