package com.yeejoin.amos.fas.business.action.result;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;
import java.util.Map;

public class TipResult  extends SimpleResult{

	@Override
	public JSON toJson() {
		// TODO Auto-generated method stub
		Map<String, Object> results = new HashMap<>();
		for (Map<String, Object> tempMap : data)
		{
			for (Map.Entry<String, Object> entry : tempMap.entrySet())
			{
				results.put(entry.getKey(), entry.getValue());
			}
		}		
		return (JSON) JSON.toJSON(results);
	}
}
