Scala Schema JSON Spark

df.withColumn("jsonSchema",schema_of_json(df.select(col("value")).first.getString(0)))
Ogun OZALP