it will be the json library of the hour, probably
import wilpam.json.serialize.Serializer;
// ...
void main() {
Serializer.serialize(1.0f); // or any other object supported by Serializer
}import wilpam.json.deserialize.Deserializer;
import wilpam.json.obj.*;
// ...
void main() {
JsonType jt = Deserializer.serialize("\"I'm a String\"");
}for more info check javadocs