[core] fixing brittle json test