Testosternus / CodePrep

Preparation for a coding assessment while trying out the Runescape API
0 stars 0 forks source link

Restructure response from API into decent format (SlayerCatNames) #1

Closed Testosternus closed 4 years ago

Testosternus commented 4 years ago

Runescape API returns data as plain text in 1 giant object. Should be a list of each individuel category name with value (ID).

Testosternus commented 4 years ago

used string.Split() on stringified category to extract into ResponseBasic object. Works like a charm.