finneycanhelp finneycanhelp - 4 years ago 239
JSON Question

How do you represent a JSON array of strings?

This is all you need for valid JSON, right?

["somestring1", "somestring2"]

Answer Source

I'll elaborate a bit more on ChrisR awesome answer and bring images from his awesome reference.

A valid JSON always starts with either curly brackets { or square brackets [.

{ will start an object which must have this structure:

json object

[ will start an array which must have this structure:

json array

Finally, the value is either an object, array, string, number or 3 other states as the following:

enter image description here

So yeah, your example is a perfectly valid JSON, like you could try on the link Manish pointed.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download