Sha256: 653354f6213fc6676c88e87de39249a51ab04d77ab28507771532ef2c43965a6

Contents?: true

Size: 434 Bytes

Versions: 44

Compression:

Stored size: 434 Bytes

Contents

package sh.calaba.instrumentationbackend.json;

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

import sh.calaba.org.codehaus.jackson.map.ObjectMapper;

public class JSONUtils {

	public static String asJson(Map<?,?> map) {
		ObjectMapper mapper = new ObjectMapper();
		try {
			return mapper.writeValueAsString(map);
		} catch (IOException e) {
			throw new RuntimeException("Could not convert result to json: "+map, e);
		}
	}
}

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
calabash-android-0.4.7.pre4 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java
calabash-android-0.4.7.pre3 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java
calabash-android-0.4.7.pre2 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java
calabash-android-0.4.7.pre1 test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java