Fix: added JSON parsing of the Graphite settings

Previously we were using Python object for settings so no parsing was needed, since moving to env variables we need to parse the JSON object.