JSON based protocol with BERT inside