ajax request, Metadata reading, JSON generation