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

discontinuedreplaced by: spry

Spry JSON middleware and request/response extension, used to convert request body to JSON object or set response body to JSON object.

example/main.dart

import 'package:spry/spry.dart';
import 'package:spry_json/spry_json.dart';

void main() {
  final Spry spry = Spry();

  handler(Context context) async {
    final json = await context.request.json;

    context.response.json(json);
  }

  spry.listen(handler, port: 3000);

  print('Listening on http://localhost:3000');
}
1
likes
140
points
18
downloads

Documentation

API reference

Publisher

verified publisherodroe.com

Weekly Downloads

Spry JSON middleware and request/response extension, used to convert request body to JSON object or set response body to JSON object.

License

MIT (license)

Dependencies

spry

More

Packages that depend on spry_json