Skip to content

Instantly share code, notes, and snippets.

@FelixSFD
FelixSFD / MicroserviceStartupBase.cs
Last active October 27, 2021 11:08
startup-classes
using log4net;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Oracle.ManagedDataAccess.Client;
using Prometheus;
using Sera.Common.AutoMapper;

ein Zitat

Ein Code-Block

eine große Überschrift

@FelixSFD
FelixSFD / JSON_to_Map.java
Last active April 9, 2018 09:18
JSONObject/Array to HashMap/List
/**
* Schreibt die Inhalte eines JSONObject in eine HashMap
* @param jsonObj
* @return HashMap
* @throws JSONException
*/
public static HashMap<String, Object> jsonObjectToHashMap(JSONObject jsonObj) throws JSONException {
HashMap<String, Object> map = new HashMap<>();
Iterator keys = jsonObj.keys();