Skip to main content
Question

Error Parsing BoxEvent to JSON

  • September 20, 2024
  • 0 replies
  • 17 views

Hi , I am getting below error when I do parsing using gson lib for BoxEvent.

event is of type BoxEvent.

gson.toJson(event)

Class com.box.sdk.BoxUser$Info declares multiple JSON fields named 'login'; conflict is caused by fields com.box.sdk.BoxUser$Info#login and com.box.sdk.BoxCollaborator$Info#login

 

Basically I want to create Valid Json of whole BoxEvent without any “\”” String escape. Please suggest suitable solution

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings