made json_deep_copy const

As discussed in #124