基于反射机制实现Java对象向Json数据的转换  被引量:3

Interchange of Java Object to Json Data Based on Reflection

在线阅读下载全文

作  者:李铮[1] 

机构地区:[1]承德石油高等专科学校管理工程系,河北承德067000

出  处:《承德石油高等专科学校学报》2010年第1期36-39,共4页Journal of Chengde Petroleum College

摘  要:JSON是一种轻量级的数据交换格式,易于人阅读和编写,JSON采用完全独立于编程语言的文本格式,这些特性使JSON成为理想的数据交换语言,广泛应用于AJAX程序与J2EE程序之间的数据交换,这其中就涉及到如何在运行时转化JAVA数据为JSON数据的问题。文章探讨了利用JAVA反射机制实现JAVA对象与JSON数据之间的转化的原理及方法。Json is a lightweight data-interchange format. It is easy for humans to read and write. Json is a text format that is completely independent. This property makes Json an ideal data-interchanging language and is extensively used to interchange between AJAX and J2EE, which involves how to interchange JAVA object to Json data. This paper discusses how to use JAVA reflection mechanism to realise the interchange between JAVA object and Json data.

关 键 词:JSON JAVA 反射 AJAX J2EE 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象