Fetching JSON data from external OTT API for automated movie release reports in FastReport

edited September 8 in Public

 I am building an automated daily reporting module to pull upcoming streaming dates and Telugu web series schedules from an external REST API https://ottmoviereleases.com


When binding nested JSON arrays containing release dates, language tags, and platform metadata into FastReport.Core, some data fields render blank in the final PDF preview. What is the recommended approach to properly bind dynamic movie release JSON feeds to FastReport templates in .NET?

Comments

  • When binding nested JSON arrays in FastReport.Core, blank fields usually occur because the report template expects explicit data source registration for child collections, or the JSON schema isn't flattened before binding.

    A clean way to handle this:

    • Deserialize to Models: Instead of binding raw JSON strings directly to the report, deserialize the JSON payload into strongly-typed C# models using System.Text.Json or Newtonsoft.Json.
    • Register Business Objects: Pass the deserialized list to the report using report.RegisterData(movieList, "MovieReleases") and call report.EnableData(report.GetDataSource("MovieReleases")).
    • Sub-Bands for Arrays: Ensure your FastReport template uses Data Bands and sub-bands configured for nested arrays (like platform metadata or language tags).

    If you are consuming live endpoints directly from https://ottmoviereleases.com, flattening the schema before feeding it to FastReport.Report.RegisterData() ensures all language tags and streaming metadata render properly in PDF exports without leaving blank fields.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.