[go-nuts] Re: marshall/unmarshall of large json files

2016-11-07 Thread Ugorji Nwoke
golang's encoding/json package likes to ensure that the 1. you read 12MB into memory 2. encoding/json will first scan the full text to ensure it is a well-formed json (before populating the structure) 3. At a later point, GC will reclaim that memory 4. This means that if each GET request is

[go-nuts] Re: marshall/unmarshall of large json files

2016-11-07 Thread Ugorji Nwoke
Show some code, and we may be able to advise you better. On Monday, November 7, 2016 at 1:26:49 PM UTC-5, gmuth...@gmail.com wrote: > > We are using Go for one of our projects and our API's use JSON as the > payload formatter. We have a large json file (12MB) that needs to be > unmarshalled.