Integration Fields Sync Issue

Hello,

I had to edit my API to meet the correct JSON format that integration fields require. When no data is in the system it is pulling from I do not get a sync error but when I add data I am getting "Malformed JSON". I have pasted the results from a curl in command prompt to know if the API is working.

Any ideas on what is wrong with the JSON formatting or is this a bug with the integration fields?

{
   "results_size":3,
   "results":[
      {
         "id":"ab99ad76-a9fd-e811-a97e-000d3af3e97b",
         "title":"1010 Recruitment",
         "blob":{
            "ID":"ab99ad76-a9fd-e811-a97e-000d3af3e97b",
            "MembershipTypeID":"935b39ce-b1ed-ec11-bb3d-000d3af4cc54",
            "MainContact":{
               "ID":"522ddfcc-b2fd-e811-a983-000d3af3e12c",
               "FirstName":"Dan",
               "LastName":"Piekut",
               "IsMember":true,
               "ShowCellphoneOnWeb":false,
               "ShowEmailOnWeb":false,
               "ShowSocialMediaOnWeb":false,
               "Intrapreneur":false
            },
            "AccountName":"1010 Recruitment",
            "IsMember":true,
            "MemberSince":"\/Date(1655337600000+0000)\/",
            "Website":"https://www.1010recruit.com",
            "Delegates":[
               
            ],
            "Options":[
               
            ],
            "ShowOnWeb":true,
            "ShowEmailOnWeb":false,
            "ShowAddressOnWeb":false,
            "ShowPhoneFaxOnWeb":false,
            "ShowSocialMediaOnWeb":false,
            "Manufacturing":false,
            "EnvironmentallyFriendly":false,
            "FemaleEntrepreneur":false
         }
      },
      {
         "id":"362aac9e-b7ed-ec11-bb3d-000d3af4cc54",
         "title":"Maxime's Excellent Company",
         "blob":{
            "ID":"362aac9e-b7ed-ec11-bb3d-000d3af4cc54",
            "MembershipTypeID":"935b39ce-b1ed-ec11-bb3d-000d3af4cc54",
            "MainContact":{
               "ID":"49254571-b7ed-ec11-bb3d-000d3af4cc54",
               "FirstName":"Maxime",
               "LastName":"Pare",
               "IsMember":true,
               "JobTitle":"CEO",
               "ShowCellphoneOnWeb":false,
               "ShowEmailOnWeb":false,
               "ShowSocialMediaOnWeb":true,
               "Intrapreneur":false
            },
            "AccountName":"Maxime's Excellent Company",
            "IsMember":true,
            "MemberSince":"\/Date(1655337600000+0000)\/",
            "Delegates":[
               
            ],
            "Options":[
               
            ],
            "ShowOnWeb":true,
            "ShowEmailOnWeb":false,
            "ShowAddressOnWeb":false,
            "ShowPhoneFaxOnWeb":false,
            "ShowSocialMediaOnWeb":true,
            "Manufacturing":false,
            "EnvironmentallyFriendly":false,
            "FemaleEntrepreneur":false
         }
      },
      {
         "id":"baa087c8-b6ed-ec11-bb3d-000d3af4cc54",
         "title":"Vendere Group",
         "blob":{
            "ID":"baa087c8-b6ed-ec11-bb3d-000d3af4cc54",
            "MembershipTypeID":"935b39ce-b1ed-ec11-bb3d-000d3af4cc54",
            "MainContact":{
               "ID":"3fbc80bd-b6ed-ec11-bb3d-000d3af4cc54",
               "Salutation":282210000,
               "FirstName":"Thomas",
               "LastName":"Prudhomme",
               "IsMember":true,
               "JobTitle":"Adviser",
               "ShowCellphoneOnWeb":false,
               "ShowEmailOnWeb":false,
               "ShowSocialMediaOnWeb":true,
               "Intrapreneur":false
            },
            "AccountName":"Vendere Group",
            "IsMember":true,
            "MemberSince":"\/Date(1655337600000+0000)\/",
            "NbEmployees":16,
            "Delegates":[
               
            ],
            "Options":[
               
            ],
            "ShowOnWeb":true,
            "ShowEmailOnWeb":false,
            "ShowAddressOnWeb":false,
            "ShowPhoneFaxOnWeb":false,
            "ShowSocialMediaOnWeb":true,
            "Manufacturing":false,
            "EnvironmentallyFriendly":false,
            "FemaleEntrepreneur":false
         }
      }
   ]
}

Best,

Eduard

Hi @eanghelescu

Welcome to the Prismic community.

I try to reproduce this issue on my side, and It will be beneficial if you can provide some more information (in a private message if necessary), such as:

  • You repository name
  • The name of the integration field catalog you are using
  • The endpoint you are pulling data from.

A quick hint that might help is to try to simplify your data to the point where it gets accepted by Prismic, and from there, you can debug by adding more fields.

Looking forward to your reply,
Fares