BaseOpenmrsData to Json

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 **