I am working with some big data processing. For every row of a large dataframe table we have data stored as objects, and we have a function that expects a JSON object and runs some evaluations on that object. Currently we are serializing our object into a string and then deserializing it into a json object for processing.
At scale, serialization and deserialization are very costly, so I am wondering if there is a way to convert a java/scala object directly to a json object, and if I am even correct in assuming that this would bypass any deserialization and improve performance.
Thanks!