#Conversion error

6 messages · Page 1 of 1 (latest)

vale night
#

I've an API to which I need to feed some tags which are in Map<TagObject, String> input. There's a enum of TagObject.
This API only takes input in String so I convert the map to a string with toString and interpolate it with termination characters to make it in a format it needs. But the API sends the data in form of Map<String, String> output. I want to recreate it to Map<TagObject, String>. But my logic is missing few values. Is there a better way to do it than using the enumIterator and parsing the output map?

livid veldtBOT
#

This post has been reserved for your question.

Hey @vale night! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

near wadi
#

What is the api doing with the input ? Can you skip it altogether ?

livid veldtBOT
#

💤 Post marked as dormant

This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping.
Warning: abusing this will result in moderative actions taken against you.

vale night