Thanks for the suggestions @BS_THE_ANALYST .

My schema is dynamic so I can't use schema hints. The goal is when there is new nested field in the new coming JSON files, to merge it with the existing schema. 
Most of the time, the problem raises when there is {"metadata":{} } as nested field. Any thoughts?