Hi @Patgat,
As per my knowledge, I'm afraid that we cannot get value of a lookup field which connects to another lookup field using JSON column formatting. And as said in this thread: How to create a lookup field from another lookup column, I cannot create a lookup field which connects to another lookup field. This is by design in SharePoint Online.
In this case, I would suggest you connect the lookup field to the source list B if possible and use
[$CODE_x0020_PROJET.lookupValue]
in the JSON code.
Hope my answer helps. Have a good day:)
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.