added JSON response for folders