Contains everything required to parse and serialise JSON
data.
Sample usage for parsing and accessing JSON:
import ceylon.json {
parse, Object = Object
}
String getAuthor(String json){
value parsedJson = parse(json);
"author must be a string"
assert(is Object parsedJson, is String author = parsedJson["author"]);
return author;
}
Alternatively, this variation will result in an
[[InvalidTypeException]] instead of an ...
Newer Version Available
Note: this artifact is located at Ceylon repository (https://modules.ceylon-lang.org/maven/1/)
Licenses
| License | URL |
|---|---|
| Apache Software License |
Developers
| Name | Dev Id | Roles | Organization | |
|---|---|---|---|---|
| Stéphane Épardaud | |