We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcf4b0b commit 37c47bfCopy full SHA for 37c47bf
.dockerignore
@@ -0,0 +1,2 @@
1
+.build
2
+.git
Sources/JMESPath/JMESVariable.swift
@@ -1,3 +1,4 @@
+import CoreFoundation
import Foundation
3
4
public enum JMESVariable: Equatable {
@@ -47,7 +48,7 @@ public enum JMESVariable: Equatable {
47
48
}
49
50
static func fromJson(_ json: String) throws -> Self {
- let object = try JSONSerialization.jsonObject(with: Data(json.utf8), options: [.fragmentsAllowed])
51
+ let object = try JSONSerialization.jsonObject(with: Data(json.utf8), options: [.allowFragments])
52
return try JMESVariable(from: object)
53
54
0 commit comments