I have a bitstring of the form bitstring = <<18::6,8::4,2::5,16::5,18::6,3000::16,0::4>>
. I want to render but poison or Jason doesn't seem to be rendering. What is the best way to render a bitstring in response like this.
Something like this
bits = <<18::6,8::4,2::5,16::5,18::6,3000::16,0::4>>
render(conn, "bits.json", bits: bits)