use json definition instead of js