How to create zoho books contact from zoho crm custom function

How to create zoho books contact from zoho crm custom function

Hi.

I am trying to create a zoho books customer from a zoho crm custom function. 
I got it working, but it doesn't add in the contact information section (screenshot attached), just the billing or shipping address sections.

I think i need to add a contact persons in the request to make that happen. But when I try to do that I get this error:
  • {"code":1038,"message":"JSON is not well formed"}
 that error is from this code:
  1.         contactperson = Map();
  2. contactperson.put("first_name",fName);
  3. contactperson.put("last_name",lName);
  4. contactperson.put("email",email);
  5. contactperson.put("phone",phone);
  6. billingAddress = Map();
  7. billingAddress.put("attention",fName + " " + lName);
  8. billingAddress.put("address",street);
  9. billingAddress.put("city",city);
  10. billingAddress.put("state",state);
  11. billingAddress.put("zip",zip);
  12. booksContactInfo = Map();
  13. booksContactInfo.put("contact_name",fName + " " + lName);
  14. booksContactInfo.put("contact_persons",contactperson);
  15. booksContactInfo.put("currency_id",3474557000000000097);
  16. booksContactInfo.put("billing_address",billingAddress);
  17. booksContactInfo.put("tax_authority_id",3474557000000360005);
  18. booksContactInfo.put("tax_id",3474557000000360007);
  19. booksContactInfo.put("is_taxable",true);
  20.          response = zoho.books.createRecord("Contacts","788939832",booksContactInfo,"zoho_books_create_update");

  21. info response;
  22. booksID = response.get("contact").get("contact_id");
  23. info booksID;

If I comment out the contact persons stuff it created the contact but without the primary contact information section. I attached a screenshot

This seems similar to a lot of things I have done in the past that have worked. 

I would appreciate any insight. Thanks so much in advance!