try to make JSON in HAL format