BaseOpenmrsData to Json

Tags: #<Tag:0x00007f29947a54d0> #<Tag:0x00007f29947a5390>

Application Name: Openmrs Version Number: 1.9.11.

Question: Hi Guys, Is there any way to parse BaseOpenmrsData (Patient or person) to Json? It fails each time try to do that with Gson or Jsckson. Here is the pastebin of the error i got with Gson : https://pastebin.com/SyE4kSxK Thanks **