Scala -Schema Json Spark
df.withColumn("jsonSchema",schema_of_json(df.select(col("value")).first.getString(0)))
Ogun OZALP
df.withColumn("jsonSchema",schema_of_json(df.select(col("value")).first.getString(0)))