anchor.diff:  ```
   
   <div class="bg-blue-100 border-l-4 border-blue-500 text-blue-600 px-4" role="alert">
  -  <p class="text-base font-bold">Bear in mind that `JSON` will convert symbols to strings and you have to prepare for that when retrieving events.</p>
  +  <p class="text-base font-bold">Bear in mind that <code>JSON</code> will convert symbols to strings and you have to prepare for that when retrieving events.</p>
     <p class="text-base inline-block">
  -    ```ruby
  +<code>
   JSON.load(JSON.dump({foo: :bar}))
   => {"foo"=>"bar"}
  -```
  +</code>
   
   One way to approach this is to have your own event adapter, specific for the project you're working on.
   
  -```ruby
  +<code>
   class MyEvent < RailsEventStore::Event
     def data
       ActiveSupport::HashWithIndifferentAccess.new(super)
  
positive.code: 
  event.data['foo']
  # => "bar"
  ```
  
    <p class="text-base inline-block">
      Another way to achive that could be define your own <a href="https://railseventstore.org/docs/mapping_serialization/#custom-mapper">custom mapper and transformation</a>
  
negative.code: end
  
  OrderPlaced = Class.new(MyEvent)
  </code>
  
  That shields you from data keys being transformed from symbols into strings. It doesn't do anything with data values associated to those keys.
  
  <code>
  event_store.publish(OrderPlaced.new(event_id: 'e34fc19a-a92f-4c21-8932-a10f6fb2602b', data: { foo: :bar }))
  event = event_store.read.event('e34fc19a-a92f-4c21-8932-a10f6fb2602b')
  
  