Desired project process & outcome:
1) Load validated JSON document from FinalDraft .FDX (.XML) file.
2) Get "Locations" data from screenplay property: array of Locations.
3.) Then load and display Google search images representing each location in the JSON array. E.g.:
"Locations": {
"Location": [
"MANHATTAN OFFICE BUILDING",
"MANHATTAN HARBOR",
"DOJO",
"SAILBOAT - MANHATTAN HARBOR",
"SAILBOAT - NEW YORK HARBOR",
"SUBWAY CAR",
"KATHARINE'S APARTMENT",
"LAW OFFICE",
"LOFT STUDIO",
"MAUSOLEUM",
"KATHERINE'S APARTMENT",
"THERAPIST'S OFFICE",
"STUDIO LOFT",
"PETER'S APARTMENT/DINNER AT OYSTERIA.",
"OYSTER BAR",
"PHOTO STUDIO",
"SKYWAY",
"HIGHLINE PARK",
"CHINATOWN APARTMENT",
"FLUSHING - TREELINED STREET",
"CAR - HIGHWAY TO MARBLEHEAD",
"FLUSHING",
"CAR - MARBLEHEAD",
"BED & BREAKFAST - DOWNSTAIRS",
"BEDROOM",
"THE LANDING",
"STATE STREET",
"BED & BREAKFAST- ROOM",
"BREAKFAST ROOM",
"TOWN",
"MARINA DAY",
"MARINA",
"THE LANDING PUB",
"STREET",
"WOODS",
"MARBLEHEAD NECK",
"ROY'S HOUSE",
"END OF STREET",
"DINING ROOM",
"TIERED BACKYARD",
"TODD'S APARTMENT- BEDROOM",
"TODD'S APARTMENT - LIVING AREA",
"YACHT - DOCK",
"BED AND BREAKFAST - ROOM",
"BED AND BREAKFAST ROOM",
"CAR",
"LIGHTHOUSE",
"OUTSIDE UNCLE ROY'S HOUSE",
"GROCERY STORE",
"B&B",
"BED AND BREAKFAST",
"UNCLE ROY'S HOUSE",
"BED AND BREAKFAST - BREAKFAST ROOM",
"POLICE STATION",
"MARINA YACHT CLUB",
"VETERNARIAN'S OFFIE",
"EXAM ROOM",
"PHONE CONVO",
"CAR - MARBLEHEAD NECK BRIDGE",
"BRIDGE",
"STATEROOM",
"LUXURY YACHT",
"STATEROOM - LUXURY YACHT",
"ROY'S HOUSE DECK",
"STATE ROOM - LUXURY YACHT",
"BOAT",
"UNCLE ROY'S HOUSE/BOATHOUSE",
"EXT MARINA/YACHTHOUSE",
"INT.YACHT",
"YACHT CLUB RESTAURANT",
"KITCHEN",
"MARINA RESTAURANT KITCHEN",
"EXT SAILBOAT",
"CAR - HIGHWAY",
"INT TODD'S APARTMENT",
"INT CAR",
"FREEZER",
"SAILBOAT",
"COAST GUARD BOAT",
"UPSTAIRS - ROY'S HOUSE - DAY",
"POLICE STATIONS/POLICE CARS",
"UNCLE ROY'S HOUSE - DAY",
"WINE CELLAR",
"INT/EXT CAR/ROAD",
"POLICE STATIONS/POLICE CAR",
"END CREDITS",
"END CREDITS PLAY TO TOM PETTY'S \"AMERICAN GIRL\"",
"HIGHWAY",
"YACHT",
"LIVING ROOM",
"GUEST BEDROOM",
"SIDEWALK",
"WHITESTONE BRIDGE",
"GAS STATION - HIGHWAY",
"HALLWAY - ROY'S HOUSE",
"PARLOR",
"GUEST BEDROOM - ROY'S HOUSE",
"UNCLE ROY'S HOUSE - GUEST BEDROOM",
"ROY'S HOUSE - DOWNSTAIRS/FOYER",
"HELEN'S BEDROOM - ROY'S HOUSE",
"FOYER",
"JETTY",
"MARINA - HALLWAY"
]
a la this foiled attempt using McCarthy's p5 github examples for a local JSON file:
However, in testing I kept getting an error locally and via the server/Chrome: