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 ...
Artifacts using Ceylon JSON Platform Module (18)Sort by:Popular▼
gyokuro is a framework written in Ceylon, inspired by Sinatra
and Spark, for creating web applications with very few boilerplate.
It is based on the Ceylon SDK and uses ceylon.net.