SyntaxFix
Write A Post
Hire A Developer
Questions
Json has to have key-value pairs. Tho you can still have an array as the value part. Thus add a "key" of your chousing:
var json = JSON.stringify({whatver: test});