{"code":1038,"message":"JSON is not well formed"}

{"code":1038,"message":"JSON is not well formed"}

Today this began failing:

sales_order_data = zoho.books.createRecord("salesorders",books_organization_ID,order_data);

with this error message.

{"code":1038,"message":"JSON is not well formed"}

This code has been running for two years.

Here is the input json


  1. {
  2.     "customer_id": "2274626000040565656",
  3.     "zcrm_potential_id": "4356038000177421506",
  4.     "date": "16-Jul-2024",
  5.     "status": "pending_approval",
  6.     "current_sub_status": "pending_approval",
  7.     "order_status": "pending_approval",
  8.     "line_items": [
  9.         {
  10.             "item_id": "2274626000029540060",
  11.             "name": "Glitter Tank",
  12.             "quantity": "1",
  13.             "description": "#12949A GLITTER TANK \nBASE BLACK FLEX \nAB STONES \nPACFIC ROYAL BLUE ACCENTS \nWHITE PERAL ACCENTS \nJET STONES \nAPPLIQUÉ WITH FILL AND SCATTER",
  14.             "rate": 60,
  15.             "item_custom_fields": [
  16.                 {
  17.                     "api_name": "cf_size",
  18.                     "value": "CXS"
  19.                 },
  20.                 {
  21.                     "api_name": "cf_fabric",
  22.                     "value": "Flex and Mystique"
  23.                 },
  24.                 {
  25.                     "api_name": "cf_logo",
  26.                     "value": "Rhinestone"
  27.                 },
  28.                 {
  29.                     "api_name": "cf_style_number",
  30.                     "value": "2171"
  31.                 },
  32.                 {
  33.                     "api_name": "cf_commission_rate",
  34.                     "value": "8"
  35.                 },
  36.                 {
  37.                     "api_name": "cf_subform_row_id",
  38.                     "value": "4356038000182863576"
  39.                 },
  40.                 {
  41.                     "api_name": "cf_item_number",
  42.                     "value": "#13540A"
  43.                 }
  44.             ]
  45.         }
  46.     ],
  47.     "custom_fields": [
  48.         {
  49.             "api_name": "cf_estimated_ship_date",
  50.             "value": "27-Aug-2024"
  51.         }
  52.     ]
  53. }