且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Java中将json对象转换为HTML格式?

更新时间:2022-11-18 23:00:54

没有自动方法,因为JSON对象仅包含数据,而在HTML中则具有标记语义(JSON和HTML之间没有1:1映射).

There's no automatic way because a JSON object contains only data while in HTML there's markup semantics (there's no 1:1 mapping between JSON and HTML).