PackageTrack
Sign in Get early access

from_json_to_json

A small set utilities to safely convert JSON to values and back

0.5.0 14K downloads/mo #2544 most downloaded on pub.dev arenukvern/from_json_to_json

What this package is like to depend on

Last release 5 months ago

23 Mar 2026

Ships fairly regularly

a new release about every 2 months

Nearly every release is documented

notes for 6 of 6 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

6 releases · first in 2025

2 releases in the last 12 months

see the full history below

Release timeline

6 releases · Apr 2025 to Mar 2026
2026
Release Pre-release

Releases

latest 6
  1. 0.5.0 23 Mar 2026
    Release notes

    BREAKING: dependencies update

    environment:
      sdk: ">=3.11.0 <4.0.0"
    
    dependencies:
      is_dart_empty_or_not: ^0.4.0
    dev_dependencies:
      test: ^1.31.0
    
    Open source →
  2. 0.4.0 15 Jan 2026
    Release notes

    BREAKING: dependencies update

    environment:
      sdk: ">=3.10.0 <4.0.0"
    
    dependencies:
      collection: ^1.19.1
      is_dart_empty_or_not: ^0.3.0
    dev_dependencies:
      coverage: ^1.15.0
      test: ^1.29.0
    
    Open source →
  3. 0.3.0 18 Aug 2025
    Release notes

    BREAKING:

    • fixed typos. Migration: rename call sites to the corrected names.

      • dateTimeFromMilisecondsSinceEpoch -> dateTimeFromMillisecondsSinceEpoch
      • dateTimeToMilisecondsSinceEpoch -> dateTimeToMillisecondsSinceEpoch
    • chore: dart 3.8.0 is_dart_empty_or_not: ^0.2.3 lints: ^6.0.0 xsoulspace_lints: ^0.1.2

    • feat: dateTimeFromYYYYMMDDHMMSSAM: Parse custom "YYYY-MM-DD H:MM:SS AM/PM" strings to DateTime?

    • feat: dateTimeToYYYYMMDDHMMSSAM: Format DateTime? as "YYYY-MM-DD H:MM:SS AM/PM" string

    • feat: jsonDecodeDurationFromISO8601: Parse ISO 8601 duration format strings to Duration

      • Supports years (Y), months (M), weeks (W), and days (D)
      • Handles formats like "P1Y", "P6M", "P2W", "P30D"
      • Graceful handling of null, empty, and invalid input
      • Returns Duration.zero for negative values or parsing errors
      • Commonly used in API specifications, configuration files, and calendar applications
    • feat: jsonEncodeDurationToISO8601: Convert Duration to ISO 8601 duration format string

      • Converts Duration objects to standardized ISO 8601 format
      • Prioritizes larger units (years, months, weeks, days) for readability
      • Supports complex durations with multiple units (e.g., "P1Y6M2W3D")
      • Returns "P0D" for zero or negative durations
      • Perfect for API responses, configuration serialization, and data exchange
    Open source →
  4. 0.2.1 21 Jun 2025
    Release notes
    • perf: dateTimeFromIso8601String added check for empty strings
    Open source →
  5. 0.2.0 27 May 2025
    Release notes

    Added

    • Type-safe decoding with jsonDecodeListAs<T> and jsonDecodeMapAs<K,V>
    • More flexible input handling - all decode functions now accept dynamic input
    • Enhanced string decoding with pattern matching in jsonDecodeString
    Open source →
  6. 0.1.0 28 Apr 2025
    Release notes

    initial version

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive