---
title: "Discussion on \"Flutter JSON Parsing: fromJson, Null Safety and Code Generation\" | Hashnode"
description: "Discussion on \"Flutter JSON Parsing: fromJson, Null Safety and Code Generation\". How to parse JSON in Flutter: jsonDecode, fromJson/toJson models, null safety, nested lists, json_serializable vs freezed, and the runtime errors you will hit."
url: "https://hashnode.com/posts/flutter-json-parsing-fromjson-null-safety-and-code-generation/6afe8bbba6ff545fa36ba4f3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flutter JSON Parsing: fromJson, Null Safety and Code Generation](https://neemii.hashnode.dev/flutter-json-parsing-fromjson-null-safety-and-code-generation?utm_source=hashnode&utm_medium=feed)

How to parse JSON in Flutter: jsonDecode, fromJson/toJson models, null safety, nested lists, json\_serializable vs freezed, and the runtime errors you will hit.

4d ago · 13 min read · neemii.hashnode.dev  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#json](https://hashnode.com/tag/json)
-   [#mobile-development](https://hashnode.com/tag/mobile-development)

## Written by

[Muhammad Naeem](https://hashnode.com/@neemiidev)

@neemiidev

  
[View profile](https://hashnode.com/@neemiidev)

I'm a Flutter developer from Lahore, Pakistan, building iOS and Android apps for startups and businesses in the UAE, Pakistan and worldwide.

I'm a Flutter developer from Lahore, Pakistan, building iOS and Android apps for startups and businesses in the UAE, Pakistan and worldwide. I take apps from the first Figma screen to a live release on the App Store and Google Play, and keep them running after launch.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
