fixing deprecation warnings, main builder for a JsonObject now takes a Foldable, but is named `.from` to retain backwards compatibility
minor cleanup, added an alternate method to the deprecation message