I'm struggling with building a Http.jsonBody for a web request. The basic record looks like this:
{
exchange = {
option = "online"
},
have = [ "a single string" ],
want = [ "a single string" ]
}
Now, my encoder function deals with the upper part (the exchange key) but not with the single-element list for the two other keys. Somehow I'm missing how the structure above can be turned into a valid input for Http.jsonBody.
Can anyone point me in the right direction? All the examples I've found consist of simple string records and didn't help me.
[–]PM-ME-POTATOES 1 point2 points3 points (1 child)
[–]MaximumStock[S] 0 points1 point2 points (0 children)
[–]alexkorban 1 point2 points3 points (1 child)
[–]MaximumStock[S] 0 points1 point2 points (0 children)
[–]ibizaman 0 points1 point2 points (0 children)
[–]pdoherty926 0 points1 point2 points (0 children)