Encoding JSON

We have multiple options for JSON encoding:

  • JSON.encode!/2
  • JSON.encode_to_iodata!/2
    This is the most efficient format if the JSON is going to be used for IO purposes.

But since the data format we are using to simulate traffic is not going to change there is another option

  • EEx