Integration · JSON exporter

Structured observations in,
traceable records out

Send a top-level JSON array or a wrapped observations, records, or rows array through AltitudeOS's existing ingestion contract. The result is one consistent, reviewable observation list for synthesis and desktop reports.

Start a Trial → Back to Integrations Explore Features

Meet structured field data where it already lives

The JSON exporter is a documentation layer over the existing parseFieldData implementation—not a new upload or API service. It auto-detects JSON input, validates the supported payload shape, and shapes each observation without requiring a bespoke connector for every field tool.

🦉

Species observations

Bring structured species lists and sighting counts into the same record shape used by downstream ecology pipelines. Required fields are species, count, date, location, and observer.

📝

Field context

Keep the field team's notes and context alongside the core observation. Optional notes, id, family, and lifestage fields remain available after normalization.

🗺️

Structured metadata

Send location context or tool-specific metadata as JSON fields. Unknown structured keys are preserved in extra rather than discarded, so source context stays attached to the observation.

Detect, validate, shape, then join into synthesis

The JSON path does the normalization work once, then hands a stable contract to the rest of AltitudeOS. This page describes the current parser behavior; it does not add client-side upload behavior or a new API endpoint.

JSON payload

Predictable input shapes
  • Auto-detects input beginning with { or [.
  • Accepts a top-level array of observation objects.
  • Accepts observations, records, or rows arrays.
  • Uses case-insensitive, whitespace-tolerant field matching.

Normalized record

Stable for every downstream step
  • Normalizes dates to ISO YYYY-MM-DD where parseable.
  • Retains the original count and a numeric countNumeric.
  • Records sourceType: "json" and zero-based sourceLine.
  • Passes one unified list into synthesis and Word report export.

A small JSON shape with room for field reality

JSON records require five canonical fields and accept optional ecological metadata. Field matching is case- and whitespace-tolerant, so a source can use presentation-friendly keys without changing the downstream shape.

Representative JSON input

{
  "observations": [
    {
      "species": "Acacia melanoxylon",
      "count": 3,
      "date": "15/03/2024",
      "location": "Site 4 A",
      "observer": "JD",
      "notes": "mixed eucalypt stand",
      "family": "Fabaceae",
      "lifestage": "adult",
      "surveyMethod": "transect"
    }
  ]
}

Normalized record shape

{
  species: "Acacia melanoxylon",
  count: 3, countNumeric: 3,
  date: "2024-03-15", dateRaw: "15/03/2024",
  location: "Site 4 A", observer: "JD",
  notes: "mixed eucalypt stand",
  family: "Fabaceae", lifestage: "adult",
  sourceType: "json", sourceLine: 0,
  extra: { surveyMethod: "transect" }
}

Source metadata

The parser returns sourceMeta beside the records: format: "json", the selected inputKey (or null for a top-level array), rowCount, and sourceType: "json". That makes the detected dialect and wrapper key visible to the calling pipeline.

Surface input quality without losing the row

JSON ingestion is not a silent rewrite. Malformed JSON and unsupported top-level shapes produce ingestionErrors; missing required fields are also reported as errors. For rows that can be normalized, empty or malformed values produce ingestionWarnings while the record is retained. The normalized record keeps the original date in dateRaw, identifies its origin with sourceType: "json", records its zero-based sourceLine, and preserves unknown structured metadata in extra.

↩

Original values retained

dateRaw keeps the source date beside the normalized ISO date; count stays available beside countNumeric, including when a value needs review.

#

Row provenance visible

sourceLine and sourceType identify where a record came from. JSON rows use zero-based positions, so the first array item is sourceLine: 0.

✓

Errors are separated from warnings

Malformed payloads and missing required fields are errors; empty species, observer, date, or count values and unparseable dates are warnings when the row remains shapeable.

The JSON exporter is the handoff, not a dead end

JSON records use the same observation shape as synthesized species_observations. Their sourceType: "json" distinguishes the origin, while the records join the synthesized list before the Word report consumer renders species, count, location, date, and notes. Read the report synthesis engine deep-dive for the join contract or follow the desktop-reports page to see the final output.

Start with JSON, then see the whole pipeline

Create a trial account to explore the AltitudeOS workflow. Compare the right fit on the pricing page, or return to the integrations hub to review JSON alongside the CSV importer.

Create a free trial account →