@@ -4,6 +4,7 @@ import kotlinx.serialization.ExperimentalSerializationApi
4
4
import kotlinx.serialization.json.Json
5
5
import kotlinx.serialization.json.JsonElement
6
6
import kotlinx.serialization.json.decodeFromStream
7
+ import org.intellij.lang.annotations.Language
7
8
import org.jetbrains.kotlinx.dataframe.AnyFrame
8
9
import org.jetbrains.kotlinx.dataframe.AnyRow
9
10
import org.jetbrains.kotlinx.dataframe.DataFrame
@@ -254,7 +255,7 @@ public fun DataRow.Companion.readJson(
254
255
@Refine
255
256
@Interpretable(" ReadJsonStr" )
256
257
public fun DataFrame.Companion.readJsonStr (
257
- text : String ,
258
+ @Language( " json " ) text : String ,
258
259
header : List <String > = emptyList(),
259
260
keyValuePaths : List <JsonPath > = emptyList(),
260
261
typeClashTactic : TypeClashTactic = ARRAY_AND_VALUE_COLUMNS ,
@@ -269,7 +270,7 @@ public fun DataFrame.Companion.readJsonStr(
269
270
* @return [DataRow] from the given [text].
270
271
*/
271
272
public fun DataRow.Companion.readJsonStr (
272
- text : String ,
273
+ @Language( " json " ) text : String ,
273
274
header : List <String > = emptyList(),
274
275
keyValuePaths : List <JsonPath > = emptyList(),
275
276
typeClashTactic : TypeClashTactic = ARRAY_AND_VALUE_COLUMNS ,
0 commit comments