I'm able to parse a single object using JSON.parse.
var testing = '{"appid": "730", "contextid": "2", "amount": "1", "assetid": "2883267603"}';
var itemsObject = JSON.parse(testing);
But when I try to parse a variable with multiple objects:
var testing = '{"appid": "730", "contextid": "2", "amount": "1", "assetid": "2883267603"}, {"appid": "730", "contextid": "2", "amount": "1", "assetid": "3084880561"}';
var itemsObject = JSON.parse(testing);
I get the following error:
SyntaxError: Unexpected token ,