Open MBuchalik opened 3 years ago
What exact endpoint are you using?
I am using the "preview" endpoint (api/adapter/preview
). But it seems like it also happens with api/adapter/dataImport?includeData=true
Well, this is currently somehow by design (our internal events use this format too) and also because the Adapter is written in Java. As Java and JPA do not natively support JSON, we are storing the data
as String
internally, which is not ideal but simple.
Might be worth keeping this in mind when we are discussing #283 in the next meeting.
Exactly, we stored the data as a string because this was the simplest solution regarding persistence. I also think that we should discuss this in the developer meeting. However, I think we should keep it separate from #283.
When requesting data using the Adapter, we get a response like this:
Expected result:
The "data" field should be an actual array.
Actual result
The "data" field is currently a string. So you need to run
JSON.parse()
in order to get the actual data.