old_contents: import json
  
  import heroic.v1 as v1
  
  q = v1.Query.decode({
    "query": "hello world",
    "aggregation": {
      "type": "sum"
    }
  })
  
  print(q.query)
  print(q.aggregation)
  print(json.dumps(q.encode()))
  
new_contents: import json
  
  import heroic.v1 as v1
  
  q = v1.Query.decode({
    "query": "hello world",
    "aggregation": {
      "type": "sum",
    }
  })
  
  d = json.loads(json.dumps(q.encode()))
  
  q2 = v1.Query.decode(d)
  
  print(q2.encode())
  
subject: update example