Remove deprecated jsonToRepJson warning

A small change to get rid of the deprecation warning during compilation.