smart_json_parser 1.0.0 copy "smart_json_parser: ^1.0.0" to clipboard
smart_json_parser: ^1.0.0 copied to clipboard

Smart and safe JSON parser for Dart and Flutter. Parse int, double, bool, and string values safely without runtime crashes. Useful for handling dynamic APIs and inconsistent JSON responses.

example/main.dart

import 'package:smart_json_parser/smart_json_parser.dart';

void main() {
  final json = <String, dynamic>{
    'age': '30',
    'salary': '55000.75',
    'verified': 'true',
    'name': 'Richa',
  };

  final age = SmartJson.intValue(json['age']);
  final salary = SmartJson.doubleValue(json['salary']);
  final verified = SmartJson.boolValue(json['verified']);
  final name = SmartJson.stringValue(json['name']);

  print('Age: $age');
  print('Salary: $salary');
  print('Verified: $verified');
  print('Name: $name');
}
6
likes
0
points
121
downloads

Publisher

unverified uploader

Weekly Downloads

Smart and safe JSON parser for Dart and Flutter. Parse int, double, bool, and string values safely without runtime crashes. Useful for handling dynamic APIs and inconsistent JSON responses.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on smart_json_parser