Is sending values i.e. 54, 'foobar', true considered as valid JSON response, or do I have to wrap them into objects, i.e. { result: 54 }, { result: 'foobar' } etc.?
Is sending values i.e. 54 , ‘foobar’ , true considered as valid JSON response,
Share
The {} is necessary, and MUST contain at least one name-value pair. See http://www.json.org/ for JSON syntax.