1
0
mirror of https://github.com/h7x4/unofficial_jisho_api_dart.git synced 2025-09-21 04:55:56 +02:00

Add examples for direct parsing

This commit is contained in:
2020-06-25 23:01:38 +02:00
parent 29ade01eed
commit 37db73f5c9
8 changed files with 120 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
import 'dart:convert';
import 'package:unofficial_jisho_api/api.dart' as jisho;
final encoder = JsonEncoder.withIndent(' ');
void main() async {
await jisho.scrapeForPhrase('').then((data) {
print(encoder.convert(data));
});
}