lib/basic_serializer/config.rb in basic_serializer-0.1.4 vs lib/basic_serializer/config.rb in basic_serializer-0.1.5
- old
+ new
@@ -1,12 +1,13 @@
# frozen_string_literal: true
class BasicSerializer
module Config
OJ_FORMAT = {
- indent: 2,
- space: " ",
- space_before: "",
+ mode: :compat,
+ indent: " ",
+ space: " ", # This controls both spaces after commas AND colons
+ space_before: "", # This controls space before colons
object_nl: "\n",
array_nl: "\n"
}.freeze
end
end