It's possible to store json on amazon s3?
I have found the problem. I was parsing the json in the wrong way.
$.ajax({
url:"https://s3.amazonaws.com/myBucket/myfile.json",
type:"GET",
success:function(data) {
console.log(data.property)
}
})
Instead this works:
$.ajax({
url:"https://s3.amazonaws.com/myBucket/myfile.json",
type:"GET",
success:function(data) {
var obj = jQuery.parseJSON(data);
if(typeof obj =='object'){
console.log(obj.property)
}
}
})
Change Metadata 'Value' in Key:Value pair to 'Application/json' from file properties, in AWS S3 console.