func jsonRepresentation(options: JSONWritingOptions = .init()) throws -> Data returns an UnsafeRawPointer

In TabularData.DataFrame, using

myDataFrame.jsonRepresentation()

returns an UnsafeRawPointer

Is there a workaround for this please?

Replies

The result type of jsonRepresentation is Data.

Thank you for your reponse.

What I don't understand is why I cannot therefore write let myJSON = myDataFrame.jsonRepresentaion()