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

Safely parse JSON values in Dart and Flutter apps without runtime crashes.

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
160
points
105
downloads

Publisher

unverified uploader

Weekly Downloads

Safely parse JSON values in Dart and Flutter apps without runtime crashes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on smart_json_parser