Modified trace as string, added parameter 'trace_as_string', removed methods getJsonUseTraceAsString, setJsonUseTraceAsString