Last active
February 29, 2020 11:53
-
-
Save bsutton/b893a1644beaeb4ffec69848ae40b75d to your computer and use it in GitHub Desktop.
Convert to json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env dshell | |
import 'dart:convert'; | |
import 'package:dshell/dshell.dart'; | |
void main() { | |
var json = | |
'wget -qO- https://jsonplaceholder.typicode.com/todos/1'.toJson(); | |
print('Title: ${json["title"]}'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment