Ley ground work for filtering and merging json