title: Convert a protobuf ( generated by grpc ) to JSON in Android
body: <p>I would like to convert a protobuf ( generated by grpc ) to JSON.</p>
  
  <p>I know with protobuf you can use: <code>JSonFormat</code> ( <a href="https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/JsonFormat" rel="nofollow noreferrer">https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/JsonFormat</a> ) but this is not included in <code>protobuf-lite</code> ( <code>implementation 'com.google.protobuf:protobuf-lite:3.0.0'</code> ) which it's the one used in Android with the <code>protobuf-gradle-plugin</code> ( <a href="https://github.com/google/protobuf-gradle-plugin/issues/276" rel="nofollow noreferrer">https://github.com/google/protobuf-gradle-plugin/issues/276</a> )</p>
  
  <p>Is there any alternative?</p>
  
  <p>I'm using Kotlin, but because the protobuf generated from grpc is in java so I can't use serialisation from Kotlin ( <a href="https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/runtime_usage.md#protobuf" rel="nofollow noreferrer">https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/runtime_usage.md#protobuf</a> )</p>
  
  <p>Any ideas? </p>
  
  <p>Thanks</p>