I am new to amazon s3 and am trying to use node.js to upload JSON into a file. My object is users, and it has a bunch of keys and values in it. Here is how I\'m
users
JSON.stringify is the way to create a JSON file on S3.
JSON.stringify
AWS accepts serialized JSON string as Body.
s3.putObject({ Bucket: 'currenteventstest', Key: 'users.json', Body: JSON.stringify(users), ContentType: 'application/json; charset=utf-8' });