backport #12065 string

Sorry for delay. Now we can manage working with JSON files as well. Only will be available in 7.0.4 :/. However until OC 8 is a branch, it will be manual.

@MorrisJobke @DeepDiver1975.