Here are the examples of the java api com.blade.kit.json.Ason taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
18
Source : Theme.java
with MIT License
from tfssweb
with MIT License
from tfssweb
/**
* 返回主题设置选项
*
* @param key
* @return
*/
public static String theme_option(String key) {
String theme = Commons.site_theme();
return TaleConst.OPTIONS.get("theme_" + theme + "_options").filter(StringKit::isNotBlank).map((String json) -> {
Ason ason = JsonKit.toAson(json);
if (!ason.containsKey(key)) {
return "";
}
return ason.getString(key);
}).orElse("");
}