Yes, there could be ways to do it. I could have used Javascript to access
the JSON data values. But couldn't get that to work either. So the easier
thing for me to do was to unmarshal the string again into a
map([string]interface{}) type which is what I finally did to get the code
to work.
Thanks f
The devil sitting on my shoulder tempts me to say "Of course, there is" and
walk away. That said, by now there must exist code to read JSON (YAML,
Windows config files, etc.) from a string. It's just a matter of finding
it.
- https://gobyexample.com/json
- https://blog.golang.org/json-and-go