afserver: can save json objects in a file