Add putJson function.