* Gets JSON string from a collection of goods or categories
*/
private String getItemsJson(Iterable<? extends Jsonable<?>> items)
throws JSONException {
JSONStringer st = new JSONStringer();
JSONWriter writer = st.array();
for(Jsonable<?> i: items) {
writer = writer.value(new JSONObject(i.toJson()));
}
writer = writer.endArray();