We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5086a11 commit 3348b43Copy full SHA for 3348b43
src/DataFrame-IO/DataFrameJsonReader.class.st
@@ -182,13 +182,10 @@ DataFrameJsonReader >> parseFromValues: anArrayOfArrays [
182
{ #category : #reading }
183
DataFrameJsonReader >> read: json [
184
"Loads parsed json"
185
-
186
- json isEmpty
187
- ifTrue: [ rows := #() ]
188
- ifFalse: [
189
- orient = 'auto' ifTrue: [ self inferOrientFromJson: json ].
190
- (parseMap at: orient) value: json.
191
- ].
+
+ json ifEmpty: [ rows := #( ) ] ifNotEmpty: [
+ orient = 'auto' ifTrue: [ self inferOrientFromJson: json ].
+ (parseMap at: orient) value: json ]
192
]
193
194
0 commit comments