Function using objects take Json as unique argument.