added method that creates JSON objects of protein libraries