Skip to content

Commit

Permalink
better json serializer for unknown features
Browse files Browse the repository at this point in the history
  • Loading branch information
pm47 committed Jul 15, 2021
1 parent 399771e commit cdb7f4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ object JsonSerializers {
JField("activated", JObject(features.activated.map { case (feature, support) =>
feature.rfcName -> JString(support.toString)
}.toList)),
JField("unknown", JArray(features.unknown.map { i =>
JObject(JField("featureBit", JInt(i.bitIndex)))
}.toList))
JField("unknown", JArray(features.unknown.map(u => JInt(u.bitIndex)).toList))
)

}
Loading

0 comments on commit cdb7f4a

Please sign in to comment.