Pitfalls to Avoid While Creating Your Exhibit

JSON Syntax

  • Some browsers (such as Safari) are not tolerant of extra commas in JSON object definitions. Do not put a comma after the last field in an object:
{
  properties : {
    "isfar": {
       valueType: "boolean",
       label: "External link",
    },
  },
}


If Safari generates a "parse error" when loading a .js file, but the validator doesn't find any bugs -- and Firefox displays the exhibit correctly -- this may be your problem.