returnJson and provideJson