toJSONString()
Language/JAVA 2010. 10. 19. 16:34<script type="text/javascript" src="json2.js"></script>
<script language="JavaScript">
<!--
var people =
{ "programmers": [
{ "firstName": "Brett", "lastName":"McLaughlin", "email": "brett@newInstance.com" },
{ "firstName": "Jason", "lastName":"Hunter", "email": "jason@servlets.com" },
{ "firstName": "Elliotte", "lastName":"Harold", "email": "elharo@macfaq.com" }
],
"authors": [
{ "firstName": "Isaac", "lastName": "Asimov", "genre": "science fiction" },
{ "firstName": "Tad", "lastName": "Williams", "genre": "fantasy" },
{ "firstName": "Frank", "lastName": "Peretti", "genre": "christian fiction" }
],
"musicians": [
{ "firstName": "Eric", "lastName": "Clapton", "instrument": "guitar" },
{ "firstName": "Sergei", "lastName": "Rachmaninoff", "instrument": "piano" }
]
}
document.write(people.toJSONString());
//-->
</script>
'Language > JAVA' 카테고리의 다른 글
자바(java)에서 사용하는 정규표현식(Regular expression)(01) (0) | 2013.08.01 |
---|---|
JAXB : IllegalAnnotationExceptions - Class has two properties of the same name (0) | 2013.07.18 |
Using JAX-RS With JAXB (0) | 2013.07.10 |
Code Examples of POIFSFileSystem (0) | 2012.12.26 |
ajax post/get 방식 (0) | 2010.10.19 |