- Write a solution that meets the requirements below.
- Use a programming language of your choice to complete the challenge
- Use the two example json files
people.json
,people2.json
as inputs - Generate two new json files
old.json
,young.json
old.json
will contain individuals 30 and older andyoung.json
will contain individuals under 30- The new output files should only contain these attributes for each person
- name
- bestfriend (This will be the first friend in the list of friends)
- age
- gender
- Write your solution so that it is easily testable