@@ -224,6 +224,9 @@ module InvestigationExtensions =
224224 Investigation.encoder obj
225225 |> Encode.toJsonString ( Encode.defaultSpaces spaces)
226226
227+ member this.ToJsonString (? spaces ) =
228+ ArcInvestigation.toJsonString( ?spaces= spaces) this
229+
227230 static member fromCompressedJsonString ( s : string ) =
228231 try Decode.fromJsonString ( Compression.decode Investigation.decoderCompressed) s with
229232 | e -> failwithf " Error. Unable to parse json string to ArcStudy: %s " e.Message
@@ -233,6 +236,9 @@ module InvestigationExtensions =
233236 let spaces = defaultArg spaces 0
234237 Encode.toJsonString spaces ( Compression.encode Investigation.encoderCompressed obj)
235238
239+ member this.ToCompressedJsonString (? spaces ) =
240+ ArcInvestigation.toCompressedJsonString( ?spaces= spaces) this
241+
236242 static member fromROCrateJsonString ( s : string ) =
237243 Decode.fromJsonString Investigation.ROCrate.decoder s
238244
@@ -242,10 +248,16 @@ module InvestigationExtensions =
242248 Investigation.ROCrate.encoder obj
243249 |> Encode.toJsonString ( Encode.defaultSpaces spaces)
244250
251+ member this.ToROCrateJsonString (? spaces ) =
252+ ArcInvestigation.toROCrateJsonString( ?spaces= spaces) this
253+
245254 static member toISAJsonString (? spaces ) =
246255 fun ( obj : ArcInvestigation ) ->
247256 Investigation.ISAJson.encoder obj
248257 |> Encode.toJsonString ( Encode.defaultSpaces spaces)
249258
250259 static member fromISAJsonString ( s : string ) =
251- Decode.fromJsonString Investigation.ISAJson.decoder s
260+ Decode.fromJsonString Investigation.ISAJson.decoder s
261+
262+ member this.ToISAJsonString (? spaces ) =
263+ ArcInvestigation.toISAJsonString( ?spaces= spaces) this
0 commit comments