I've looked at the very similarly titled post ([Is there a C equivalent to Perls' Dumper() method in Data::Dumper?](https://stackoverflow.com/questions/1098327/is-there-a-c-equivalent-to-perls-dumper-method-in-datadumper)), regarding a C equivalent to `Data::Dumper::Dumper();`. I have a similar question for the Go language.

I'm a Perl Zealot by trade, and am a progamming hobbyist, and make use of `Data::Dumper` and similar offspring literally hundreds of times a day. I've taken up learning Go, because it looks like a fun and interesting language, something that will get me out of the Perl rut I'm in, while opening my eyes to new ways of doing stuffz... One of the things I really want is something like:

```
fmt.Println(dump.Dumper(decoded_json))

```

to see the resulting data structure, like `Data::Dumper` would turn the JSON into an Array of Hashes. Seeing this in Go, will help me to understand how to construct and work with the data. Something like this would be considered a major lightbulb moment in my learning of Go.

Contrary to the statements made in the **C** counterpart post, I believe we can write this, and since I'll be passing Dumper to Println, after compilation what ever JSON string or XML page I pass in and decode. I should be able to see the result of the decoding, in a Dumper like state... So, does any more know of anything like this that exists? or maybe some pointers to getting something like this done?