package ve.gob.cnti.receiver.test;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import com.cedarsoftware.util.io.JsonReader;
import com.cedarsoftware.util.io.JsonWriter;



public class JMSTest {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Map<String, String> data=new HashMap<String,String>();
		for(int i=0;i<20;i++){
			data.put("data","data");
			data.put("data1", "cisco"+i);
			String json;
			
				try {
					json = JsonWriter.objectToJson(data);
					System.out.println(json);
					Map<String, String> values=  JsonReader.jsonToMaps(json);
					System.out.println(values.get("data"));
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
		
			
	
		}
		

	}

}
