change code

Fork of MbedJSONValue_copy by Lawrence Lee