question: As a seasoned Rails developer, create a JSON object that represents a Rails flash message you might use after a successful user login. Ensure it includes both a message and a type, and format your entire output as valid JSON.
answer: ```json
  {
    "flash": {
      "message": "Login successful! Welcome back.",
      "type": "notice"
    }
  }
  ```