DB lab2. JSON serialization