JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • JSON basics: structure, syntax, advantages

    JAVA 25 SELF
    46 level,0 lecture
    A concise, modern introduction to the JSON data interchange format: what it is and why it became the de facto standard for REST API; basic structures — objects { } and arrays [ ]; allowed types (strings "...", numbers, boolean values true/ false, null); nesting; comparison with XML; JSON ↔ Java mappings (collections Map<K, V>, HashMap<K, V>). We go through practical examples and common mistakes: single quotes, trailing commas, undefined, numbers with leading zeros.
    Open
  • Jackson — reading and writing JSON, annotations

    JAVA 25 SELF
    46 level,1 lecture
    Jackson is the de facto standard for working with JSON in Java: from simple serialization and deserialization via ObjectMapper to fine-tuning with annotations like @JsonProperty, @JsonIgnore, @JsonInclude, @JsonFormat. In this lecture, we’ll cover adding the dependency ( jackson-databind), reading and writing objects and collections, pretty-printing, working with dates, and common pitfalls, including generics with TypeReference and POJO requirements (no-args constructor, getters/setters).
    Open
  • Gson — serialization and deserialization, configuration

    JAVA 25 SELF
    46 level,2 lecture
    In this lecture we examine Google’s Gson library: a quick start with toJson/ fromJson, collection deserialization via TypeToken<>, flexible configuration with GsonBuilder ( setPrettyPrinting, serializeNulls, setDateFormat). We will cover the annotations @SerializedName, @Expose, versioning with @Since/ @Until, custom adapters using TypeAdapter and registerTypeAdapter, then compare it with Jackson and go through common pitfalls.
    Open
  • Working with dynamic structures: Map, List, JsonNode

    JAVA 25 SELF
    46 level,3 lecture
    When a JSON structure is unknown beforehand or changes frequently, it’s more convenient to work not with rigid Java classes but with universal containers: Map, List, and JSON trees. In this lecture, we cover how to use ObjectMapper to read data into Map<String, Object> and List, how to safely traverse a tree via JsonNode and its methods get/ path/ asText(), as well as an alternative using Gson with JsonElement, JsonObject, JsonArray. We finish with a hands-on configuration extraction and a review of common mistakes.
    Open
  • JSON validation: JSON Schema, validation errors

    JAVA 25 SELF
    46 level,4 lecture
    Why and how to validate incoming JSON before deserialisation: define a data contract with JSON Schema (keys type, properties, required, format), validate in Java using the everit-org/json-schema library (load a schema into Schema, call validate), handle ValidationException properly, and produce clear error messages for users and APIs.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy