RSDJSONRecorderConfiguration
public protocol RSDJSONRecorderConfiguration : RSDRecorderConfiguration
RSDJSONRecorderConfigureation
is used to configure a recorder to record JSON samples.
Seealso
RSDSampleRecorder
-
Should the logger use a dictionary as the root element?
If
true
then the logger will open the file with the samples included in an array with the key ofitems
. Iffalse
then the file will use an array as the root elemenent and the samples will be added to that array. Default =false
- example:
If the log file uses a dictionary as the root element then
{ "startDate" : "2017-10-16T22:28:09.000-07:00", "items" : [ { "uptime": 1234.56, "stepPath": "/Foo Task/sectionA/step1", "timestampDate": "2017-10-16T22:28:09.000-07:00", "timestamp": 0 }, // ... more samples ... // ] }
If the log file uses an array as the root element then
[ { "uptime": 1234.56, "stepPath": "/Foo Task/sectionA/step1", "timestampDate": "2017-10-16T22:28:09.000-07:00", "timestamp": 0 }, // ... more samples ... // ]
Declaration
Swift
var usesRootDictionary: Bool { get }