L
L
Luke LikeSkywalker2018-12-26 10:07:27
go
Luke LikeSkywalker, 2018-12-26 10:07:27

How to predefine the structure if you don’t know what form JSON will have?

How to predefine a structure for JSON if you don't know what fields the JSON will come with? But what if, for example, new fields start to be written to the database or JSON fields change, then each time it will be necessary to redo the GO structure?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2018-12-26
@oolooq

usemap[string]interface{}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question