final String nodeString = entry.getValue() == null ? null : entry.getValue().toJsonString();
jsonStreamWriter.beginObject()
.name(entry.getKey()).unquotedValue(nodeString)
.endObject();
}
jsonStreamWriter.endArray()
.endObject();
writer.flush();
return writer.toString();
} catch (final IOException e) {
throw new ODataRuntimeException("IOException: ", e);