I have a dict in my server code that looks like this:
_337322{elements:[[name1,alice],[name2,“alice”]]}
After dispatching it off to the client using reply_json_dict, it arrives looking like this:
{
“elements”: [ [“name1”, “alice” ], [“name2”, “alice” ] ]
}
Atoms and strings both end up mapping onto strings, so crucial information has been lost. (name1 was paired with an atom, name2 was paired with a string.)
Is there some way I can preserve the info? I had a look at the options blurb for reply_json_dict/2 but didn’t see anything that would obviously help me.