Latest fixes for JSON-config...working except for arrays.
Fixed JSON-config and tested the solution.