require json in both files