json api contract