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 2026Releases
latest 6-
0.5.023 Mar 2026Release notes
Open source →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 -
0.4.015 Jan 2026Release notes
Open source →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 -
0.3.018 Aug 2025Release notes
Open source →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 toDateTime? -
feat:
dateTimeToYYYYMMDDHMMSSAM: FormatDateTime?as "YYYY-MM-DD H:MM:SS AM/PM" string -
feat:
jsonDecodeDurationFromISO8601: Parse ISO 8601 duration format strings toDuration- 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.zerofor negative values or parsing errors - Commonly used in API specifications, configuration files, and calendar applications
-
feat:
jsonEncodeDurationToISO8601: ConvertDurationto 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
-
-
0.2.121 Jun 2025 -
0.2.027 May 2025Release notes
Open source →Added
- Type-safe decoding with
jsonDecodeListAs<T>andjsonDecodeMapAs<K,V> - More flexible input handling - all decode functions now accept
dynamicinput - Enhanced string decoding with pattern matching in
jsonDecodeString
- Type-safe decoding with
-
0.1.028 Apr 2025