valyala / fastjson

Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection
MIT License
2.3k stars 138 forks source link

How to concatenate two []*fastjson.Value arrays to single one and save it to file #78

Open beva-sdev opened 2 years ago

beva-sdev commented 2 years ago

Question,

  1. I need to concatenate two two []*fastjson.Value arrays to one.
  2. Save the concatenated array to a file

trying to do:


var respjson []*fastjson.Value
var apijson []*fastjson.Value

for {
apijson = GetSomething(...)
...
respjson = append(respjson, apijson...) 
}

Please advice

thanks