# IOTA Hub JSON report format

The `report` slot of an observation takes either the NA report spreadsheet or a
**JSON report file**. Any occultation timing program can write it; Tangra is one
that does.

**The format is defined by Hristo Pavlov**:
[JSON report format](http://www.hristopavlov.net/json-report-format.html)
([Markdown](http://www.hristopavlov.net/json-report-format.md)). That page lists
every member, its type and its accepted values. This page covers what is specific
to IOTA Hub: which members it reads and what it requires.

- **Upload:** a file with the `.json` extension in the `report` slot. The steps are
  in the [HTTP API guide](/developers/api#submit-an-observation).

## Example

A positive observation with one event:

```json
{
  "reportData": {
    "formatVersion": 1,
    "result": "Positive",
    "event": {
      "date": "2026-08-19",
      "predictedTimeAtSiteUtc": "2026-08-19T10:27:31.000Z"
    },
    "asteroid": { "number": 60, "name": "Echo" },
    "star": { "catalogue": "UCAC4", "number": "361-172758" },
    "observers": { "names": ["Hanna Observer"], "moreThanListed": false },
    "site": {
      "location": "Dunedin, New Zealand",
      "longitude": 170.503611,
      "latitude": -45.874167,
      "altitudeMetres": 12,
      "datum": "WGS84"
    },
    "telescope": { "apertureCm": 20.3, "type": "SCT" },
    "timing": {
      "method": "VideoFrameAnalysis",
      "source": "GpsTimeInserted",
      "device": "IOTA-VTI"
    },
    "conditions": { "stability": "SlightFlickering", "transparency": "Clear" },
    "comments": "Star faint, 2x integration.",
    "events": [
      {
        "secondStar": false,
        "d": { "timeUtc": "2026-08-19T10:27:31.245Z", "errorSeconds": 0.04 },
        "r": { "timeUtc": "2026-08-19T10:27:35.805Z", "errorSeconds": 0.04 },
        "snr": 7.4
      }
    ]
  },
  "optionalData": {
    "generator": { "application": "MyTimingApp", "version": "2.1.0" },
    "submission": {
      "region": "NorthAmerica",
      "station": "Home",
      "stationNo": 2,
      "email": "observer@example.com",
      "reviewerComments": "Second comparison star drifted out at the end."
    },
    "equipment": {
      "camera": "Watec 910HX",
      "cameraModelForDelays": "WAT-910HX"
    },
    "timing": {
      "instrumentalDelays": "NotApplied",
      "integratedFrames": 2,
      "exposureSeconds": 0.08,
      "videoSystem": "NTSC",
      "videoFileFormat": "AVI"
    },
    "lightCurve": {
      "file": "20260819_60_Echo_UCAC4_361-172758_+Observer.csv",
      "points": 2400,
      "comparisonStars": 2
    },
    "prediction": {
      "source": "OccultWatcherCloudMyEvents",
      "owcEventId": "2116-60-253224-645784-U172758"
    }
  }
}
```

A miss has `"result": "Negative"` and `"events": []`.

## Members IOTA Hub reads

- **All of `reportData`.**
- **All of `optionalData`** that the format describes: `generator`, `submission`,
  `equipment`, `timing` (with the shutter members), `lightCurve`, `recording`,
  `prediction` and `analysis` (including `timingCorrections` and the double stars'
  `hints`).

Members the format does not describe are kept in the uploaded file but not shown. Please always write
`generator.application` and `generator.version`, so a reviewer knows which program
produced the report.

## How IOTA Hub reads the file

- **What makes it a report.** The file must be UTF-8 JSON with a `reportData`
  object and `formatVersion` `1`. Anything else is stored as an unreadable report,
  and no values are read from it.
- **Nothing else is refused.** A missing or wrongly typed value counts as not
  filled in. The [Required files present](/developers/checks#check-1) check asks
  for the observer's name, the asteroid, the star, the date and the result, and for
  the observer's email, which comes from `optionalData.submission.email`.
  [Report filled in](/developers/checks#check-4) asks for the site, telescope,
  timing and conditions, and for a positive also D, R and their error bars.
- **Values are shown as written.** Tokens and text are stored and shown exactly as
  the file gives them; the Hub does not map tokens to codes.
- **The first event is the observation's event.** The observation's time, its D and
  R, and every check read `events[0]`. All events (up to 20) are stored and shown
  to the reviewer.
- **Two comments.** `reportData.comments` is shown as the report comment.
  `optionalData.submission.reviewerComments` becomes the observation's comment
  when it has none; a comment already set is never overwritten. Both are cut to
  4000 characters.
- **Other limits.** Other `optionalData` text is cut to 200 characters, and
  `analysis.acknowledgedMessages` to 20 messages of 500 characters.
- **OccultWatcher Cloud link.** `prediction.owcEventId`, when present, links the
  observation to that OccultWatcher Cloud event. The Hub verifies it; an id that
  does not match the asteroid and star is dropped and the Hub finds the event
  itself.
- **The filename is never read.** The [File names](/developers/checks#check-13)
  check skips an observation whose report is a JSON file.

## Related documentation

- [JSON report format](http://www.hristopavlov.net/json-report-format.html) (Hristo Pavlov)
- [HTTP API guide](/developers/api)
- [Observer checks](/developers/checks)
- [Data submission requirements](/data-submission)
