JSON

Generate dynamic JSON in Go

What if we want to generate a JSON with dynamic key? How do we do that?

Donald Le
2 min readOct 21, 2020

--

Photo by sebastiaan stam on Unsplash

Suppose we have GeneObject with three child objects are “Ncbi”, “Ensemble”, “GeneCards”. And we have Result Object contains GeneObject.

We want the GeneObject which will become the key, will have different value for each json. Like “AK45”…

--

--

Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.