Json Fields Support
K, i've spent a decent amount of time debugging the api-platform admin/react-admin depths to figure out what was going on here:
Invariant Violation: Objects are not valid as a React child (found: object with keys {event_id, timestamp, organization, order, discriminator}). If you meant to render a collection of children, use an array instead.
in span (created by Typography)
in Typography (created by WithStyles(Typography))
...
I was getting that exception shown in the admin on the list page for one of my resources. Once I tracked it down, it's because i'm using a json field for my entity. Specifically, the field is named payload and just stores an array of data and is stored a json column with doctrine.
We are passing in that object data into the Textfield of ReactAdmin and it's throwing that error.
Currently, i'm updating the fieldFactory used in api-platform admin to use a FunctionField in ReactAdmin to use JSON.stringify to display the payload field.
Not sure if this is the best solution, but it's the only thing I could come up with at the moment for this type of field.
On an unrelated note..., the API platform admin was very very hard for me to debug since the code is transpiled in the node modules, so the code you're looking at in the source isn't what shows up in the debug output on the browser. I know this is not specific to API Platform, but it makes me wonder if there is something we can do to help facilitate the dev debugging tools for API platform.