---
title: "json所需jar包"
author: "青春的、脚步"
date: "2012-03-14T15:44:00Z"
tags: []
slug: "json-jar"
draft: false
lastmod: "2014-01-24T16:52:43Z"
id: 2009187
url: "https://youngstep.iteye.com/blog/2009187"
---

```
package temp;

import net.sf.json.JSONArray;

public class TestJson { 
	
public static void main(String[] a) { 
		Boolean[] boolArray = new Boolean[] { true, false, true };
		
		JSONArray jsonArray = JSONArray.fromObject(boolArray);
		
		System.out.println(jsonArray);
	}

}
```