[Developers] what is wrong with this write?

Edward Kawas edward.kawas at gmail.com
Fri Jul 4 15:22:35 UTC 2008


Hi,

I am confused and probably missing something fundamental, but what is wrong
with this write statement(and how can I fix it)?

[
  {
    "headquarters" : [
      {
        "citytown" : [
          {
            "create" : "unless_exists",
            "id" : null,
            "name" : "FooTownCanada2",
            
          }
        ],
        "create" : "unless_exists",
        "postal_code" : [
          {
            "create" : "unless_exists",
            "name" : "v4r 5t8",
          }
        ],
        "state_province_region" : [
          {
            "country" : [
              {
                "id" : "/en/canada"
              }
            ],
            "id" : "/en/quebec"
          }
        ],
        "street_address" : [
          {
            "connect" : "insert",
            "lang" : "/lang/en",
            "value" : "12345 Fort McMurray Drive"
          }
        ],
        "type" : "/location/mailing_address"
      }
    ],
    "id" : "/en/amgen",
    "type" : "/business/company"
  }
]

Basically, I want to insert a new Headquarters for a company, any company
... thanks.

Eddie



More information about the Developers mailing list